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 !!.

--

--

--

webdeveloper and programmer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Jest testing for Firebase functions

What is Angular?

Building accessible-app.com: Project status, side benefits, and Routes

JavaScript ES2016 Features With Examples

DS with JS — Linked Lists

2017 at 3YOURMIND — Front-end Review

NodeJS: Constant HashTables Seeds Vulnerability

Syntactical Types in JavaScript: TypeScript

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

Ashwin.B

webdeveloper and programmer

More from Medium

Automate Call Box Access Using Twilio

Cyberattacks — What do ‘we’ know about them?

Edge router interface disconnected

Firefox In Docker