If you are like me, a daily user of Sublime Text 3, then you will find this code snippet very handy. Therefore I start to look for a way to add the open with Sublime Text 3 to the context Menu.

Thinking: “What if you will be able to just right click on a folder and the Explorer Context Menu will have an option to open that folder or file directly in Sublime Text 3?” Than would be wonderful.

The bellow code snippet will allow you to do just that. First open your favorite text editor and paste the code snippet bellow:

Make sure that you set the correct path on line 2 the variable st2Path

Save the file with the name OpenWithSublimeText3.bat. If your are running on windows 8.1, to launch the file just right click the file and chose “Run as administrator”.

Run as Administrator

Run as Administrator

Finally if everything is ok you will see the following windows.


Share This
%d bloggers like this: