Open a Windows Subsystem for Linux (WSL) terminal window from Sublime Text on right-click
When developing on Windows with Sublime Text, it can be useful to run linux applications on the Ubuntu installation available on Windows Subsystem for Linux. This can be awkward to navigate when working in large projects, so here’s how you can add a right-click option to open a terminal window in the context of any folder in the sidebar:
- Install the Sublime Terminal package. Press
Ctrl+Shift+P
choosePackage Control: Install Package
, and then search for and install theTerminal
package. - Open the configuration file at: Preferences > Package Settings > Terminal > Settings – User
- Enter in the following configuration:
{ "terminal": "C:\\Windows\\System32\\bash.exe" }
- Now when you right click in your sidebar, you should see the option:
Open Terminal Here...