How to Use Terminal in Sublime Text Editor ?
Last Updated :
23 Jul, 2025
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
How to Install Sublime Text Editor on Ubuntu? Sublime Text is a popular and highly efficient source code editor that has won the hearts of developers worldwide. Known for its speed, versatility, and user-friendly interface, Sublime Text provides a seamless coding experience for both beginners and seasoned developers. With support for multiple p
3 min read
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