First, if you haven’t installed Sublime Text, I would suggest you go here and do that now. It’s a great text editor, with all manner of excellent features. However, it does not ship with PowerShell syntax highlighting by default. To add it, do the following:
- Download the ZIP from here: https://github.com/SublimeText/PowerShell
- Extract the zip into the “Packages” folder where SublimeText is installed:
$ pwd
Sublime Text 2/Packages
$ ls -al | grep PowerShell
drwxr-xr-x 12 user 1604020879 408 Sep 29 15:52 PowerShell - Restart SublimeText
- Done:
Note: Don’t run the get-vm removeVM part.. it’ll end badly.
I can’t believe I am just now finding out about Sublime Text. Thanks for the tip!
Can’t get this to import — doesn’t understand the syntax 🙁
Sorry for the delay… been majorly swamped. Were you able to get this sorted, or do you need some further guidance?
It’s a shame that it doesn’t come with Intellisense and debugging. That would be a real coup. I think Sublime is awesome, it’s just missing that one feature extension.
*Package Control*