How to Use Terminal in Sublime Text Editor ?
Last Updated :
13 May, 2024
Well in Visual Studio Code we get a direct Option for opening Terminal, Unlike Sublime Text editor. Sublime is Simple and free to use, Light on memory, and can easily work with multiple projects. In this article, we will see how to use Terminal in a Sublime Text Editor.
This article will answer all your queries such as How to use Command Line in Sublime Text on Windows, Mac, etc.
Steps to Open Terminal in Sublime Text Editor
Step 1: Open Sublime Text
Step 2: Open Command Palette using the command Ctrl+shift+p
Type the below until the option appears and select it.
Package Control: Install Package
Note: You'll need to install package control if you are using it for the first time.
Type 'Terminus' and select it. Wait for it to Complete installation and Restart Sublime Text.
Step 3: Now go to Preferences >Package Settings > Terminus > Command Palette

Now paste this code in the Default Sublime Commands Section
[
{
"caption": "Terminal (panel)",
"command": "terminus_open",
"args" : {
"cmd": "bash",
"cwd": "${file_path:${folder}}",
"title": "Command Prompt",
"panel_name": "Terminus"
}
},
]
And save it.
Note: The above code is for Linux users for Windows users you have to enter "cmd.exe" in place of "bash"
Step 4: Now go to Preferences > Package Settings > Terminus > Key Bindings

Now paste this code in the Default Sublime Keymap Section and save it:
[
{
"keys": ["alt+1"],
"command": "terminus_open",
"args" : {
"cmd": "bash",
"cwd": "${file_path:${folder}}",
"panel_name": "Terminus"
}
}
]
Note: The above code is for Linux users for Windows users you have to enter "cmd.exe" in place of "bash", also here we kept the shortcut key as "alt+1" you can use your own key.
Step 5: So whenever you want to use Terminal press alt+1 and to close Terminal type exit in the terminal and hit ENTER.

And this is how you can use Terminal in Sublime Text Editor.
Conclusion
In this article, we learned how to open and use Terminal in Sublime Text Editor, a feature not directly available in Visual Studio Code. By installing the Terminus package, users can seamlessly integrate a Terminal into Sublime Text Editor.
Similar Reads
AMP Text Editor for Linux Terminal Amp is a fully-featured and lightweight text editor inspired by the Vi/Vim text editor. Amp editor is a terminal-based editor, and it is written in the Rust language. It provides the all fundamental features required for a modern text editor. Amp does not need any configuration it comes with all con
3 min read
How to Select all in Nano Text Editor Selecting all text in the Nano text editor is a useful skill that allows you to perform various operations on the entire file content at once. This can be helpful when you need to copy, cut, or manipulate the entire text quickly. The ability to select all text is a fundamental feature in most text e
4 min read
How to Open a TextEditor in an Ubuntu Terminal Ubuntu and other Linux distributions using the GNOME desktop environment come pre-installed with a default text editor known as the GNOME Text Editor, commonly referred to as Gedit. Gedit is a user-friendly, lightweight, and powerful text editor with rich features, making it an ideal choice for casu
3 min read
How to Comment and Uncomment multiple line vi terminal editor The Vi and Vim text editors are powerful tools widely used by programmers, system administrators, and writers for efficient text manipulation and editing. A common task that often arises during coding or text management is the need to comment or uncomment multiple lines of code or text. Commenting h
3 min read
How to Browse From the Linux Terminal Using W3M? W3M is an open-source text-based terminal web browser for Linux used to browse through the terminal. It is simple to use and do not require any additional interacting interface application though it interacts through the terminal. It renders the web pages in a form as their original layout. How to I
1 min read
How to Delete Multiple Lines in Vi editor Linux was developed by Linus Torvalds in 1991 as a hobby project. It is an open-source (source code that can be used by anyone freely) kernel that is most popular and widely used in the industry as well as in personal systems. There are various operating systems based on the Linux kernel, some of th
5 min read
eDEX-UI - The Tron-Inspired Terminal Emulator for Linux Linux users often deal with the terminal but the look and feel of the terminal may be boring. Everyone wants a terminal that looks like a sci-fi movie screen. Then eDEX-UI will end your wait. eDEX-UI is a Sci-Fi inspired terminal emulator and system monitor. It gives a futuristic theme to the termin
3 min read
How to Open Terminal in Linux? The Shell or Command Prompt are common name for the Linux Terminal. The terminal was designed as a Linux File Browser, and this function is still carried out using it. You may traverse your files and undo changes made by using the Terminal as a File Browser. However, the very first step will be to O
4 min read
How to create snippets in Sublime Text In this article, we will discuss how to create snippets in Sublime text for Competitive Programming. In Competitive Programming, time is the most important key, and snippets give us functionality to not write the same code again and again and increase our performance in live contests. To install Sub
2 min read
How to Make Linux Terminal look Awesome In this article, we will install and configure some themes and plugins to tweak our Linux terminal for better productivity and a fancier look. These features include autocompletion, autosuggestion, command-line search, syntax highlighting, and better support for git and environment managers. Zsh The
3 min read