Using terminal inside Sublime text

People who use vscode has a option to open terminal inside it whereas in sublime text it’s not possible. In this article let's see how to get a terminal inside sublime text.

Implementation:

  1. Open sublime text
  2. Use the key combination Ctrl+shift+p to open Command Palette and then type the below and select it.
Package Control: Install Package

If you don’t have package control you need to install it-> refer this link

3. Type the following word and select it. Wait for it to complete installation and restart sublime text.

Terminus

4. Now go to Preferences > Package Settings > Terminus > Command Palette

Default.sublime.commands file

and then paste the following in Default.sublime.commands and save it.

[
{
"caption": "Terminal (panel)",
"command": "terminus_open",
"args" : {
"cmd": "bash",
"cwd": "${file_path:${folder}}",
"title": "Command Prompt",
"panel_name": "Terminus"
}
},
]

Note: If you are a windows user replace “bash” with “cmd.exe”.

5. Then go to Preferences >Package Settings > Terminus > Key Bindings

Default.sublime.keymap file

Now paste the following in Default.sublime.keymap file.

[
{
"keys": ["alt+1"],
"command": "terminus_open",
"args" : {
"cmd": "bash",
"cwd": "${file_path:${folder}}",
"panel_name": "Terminus"
}
}
]

Note: If you are a windows user replace “bash” with “cmd.exe”.

6. Tada !! Now you can open terminal inside your sublime pressing “alt+1”.

final output

Hope this was useful !!.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ashwin B

I love the internet, technology and building beautiful things