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:
- Open sublime text
- 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
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
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”.
Hope this was useful !!.