Nov 282013
 
 November 28, 2013  Posted by at 7:30 am PowerShell  Add comments
sh

My love for PowerShell is still strong, and so is my fascination for Sublime. So of course I would like to combine powers! I would like to be able to do two things, have syntax highlighting and to run commands piping the output to sublime. Doable? You bet!

No PowerShell :(

No PowerShell 🙁

The example is with Sublime 2

Get the Sublime package for PowerShell on GitHub

powershell_in_sublime2

Get also the package for running and piping commands

powershell_in_sublime3

Unzip, then add the folders to the packages folder for Sublime

powershell_in_sublime4

Restart Sublime, and you have it 🙂

To run a command, highlight the command and press Ctrl + Shift + R

powershell_in_sublime6

It wont open a PowerShell window, I just wanted to show that they return the same result 🙂

  2 Responses to “PowerShell in Sublime- syntax highlighting and piping commands”

  1. Hey,

    You know you can install package control to sublime to make it easier to find an install packages? https://sublime.wbond.net/installation

  2. Great article, the powershell editor in sublime is way better than the clunky one in the ISE

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

What is 6 + 13 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)