Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Shell Scripting
  • Kali Linux
  • Ubuntu
  • Red Hat
  • CentOS
  • Docker in Linux
  • Kubernetes in Linux
  • Linux interview question
  • Python
  • R
  • Java
  • C
  • C++
  • JavaScript
  • DSA
Open In App
Next Article:
How to Give Input in Sublime Text?
Next article icon

How to Use Terminal in Sublime Text Editor ?

Last Updated : 13 May, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

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

steps-to-open-sublime-text-from-terminal-windows

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

steps-to-open-sublime-text-from-terminal-windows

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.

steps-to-open-sublime-text-from-terminal-windows

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.


Next Article
How to Give Input in Sublime Text?
author
vikramadithya
Improve
Article Tags :
  • Articles
  • Linux-Unix
  • How To

Similar Reads

  • How to Clear the Terminal History in Linux
    The Linux Terminal stores every command you execute in a history file like .bash_history for Bash or .zsh_history for Zsh, making it convenient to access previous commands. However, this history can become a privacy or security issue, especially when dealing with sensitive tasks or working on shared
    6 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 Install Atom Text Editor in Linux?
    "Atom - A Hackable Text Editor of 21st Century", as the line indicates Atom is an open-source, cross-platform, feature enrich text editor developed by Github. Atom has attractive features like cross-platform editing, built-in package manager, smart auto-completion, file-system browser, and many more
    3 min read
  • How to Give Input in Sublime Text?
    Prerequisite: How to Install Sublime Text3 in Windows? Sublime text is one of the most popular text editors out there. It's popular among programmers for its easy-to-use interface and attractive UI. Through the Sublime Input plugin, it is now easier to set up your C++ environment. Setting up Sublime
    2 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
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences