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

Make a react-window (2)

Toolchain, Internals, and Intermediate Representations in JavaScript

jQuery tricks: one button -> multiple targets

Prefix sum and bit manipulation

React.memo() vs. useMemo()

5 fundamental things you must know about JavaScript

Handling errors while server side rendering your code in Nuxt.js

#NativeOrDie

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

Setting up CI/CD Pipeline from scratch using GitHub Actions.

Git:- Git is a distributed version control system for tracking changes in source code during…

How is a URL structured?

Create a Feature in a Database Using SQLite3 and Active Record: Creating a Table