How to add PowerShell syntax support into Sublime Text 3 on Windows and Mac

Sublime Text is a sophisticated text editor for code, markup and prose. If you like this editor and work with PowerShell, you find this editor excellent tool for your scripting work. PowerShell syntax is not supported by default in Sublime Text but you can add the support for PowerShell in very simple way in both environments, Windows and Mac.

In Windows:

  1. Download the PowerShell Package from Github
  2. Unzip the package and copy the unzipped folder into this location on your Windows machine
C:\Users\%username%\AppData\Roaming\Sublime Text3\Installed Packages

Now close and reopen Sublime Text 3editor and click on right down corner and you should see now listed PowerShell among supported and loaded syntaxes on your machine.

In Yosemite OS X:

  1. Download the PowerShell Package from Github
  2. Unzip the downloaded package, copy unzipped folder into this location on your Mac computer
/Users/%userName%/Library/Application Support/Sublime Text 3/Packages

Same rule apply, if you have Sublime Text opened, close it and reopen and you have now ability to change the syntax to support PowerShell on Mac too.

Enjoy scripting!

 

2 Comments on "How to add PowerShell syntax support into Sublime Text 3 on Windows and Mac"

  1. I got this working on Ubuntu.

    Instead of copying PowerShell-master to either of the above directories, you instead copy it to a location in your /home/ directory.
    ~/.config/sublime-text-3/Packages/User/

  2. On a windows system the package should be put in ..AppData\Roaming\Sublime Text 3\Packages\User

Leave a comment

Your email address will not be published.


*


Get Adobe Flash player Plugin by wpburn.com wordpress themes