Sublime Text 3 - integrated terminal?

86,634

Solution 1

The below original answer is now outdated; see below answer by Svish.


I was wondering the same thing a while back, and I believe the answer is: no.

There's no good terminal integration in ST3, except, maybe, for Terminal, which simply takes you to the terminal from any given project folder. Works ok, but not sure how much it really saves.

No way to have it in the ST3 window AFAIK.

Solution 2

Terminus does this. Supports both Unix and Windows. Works great. 👍

In View (on Windows)

Ctrl + Shift + P --> Terminus: Open Default Shell in Tab (View)

screenshot 1

In Panel (on Unix)

Ctrl + Shift + P --> Terminus: Open Default Shell in Panel

Type exit to exit and close the terminal opened in a panel.

screenshot 2

Solution 3

I installed the Sublime package TerminalView that can show a terminal window within Sublime in a separate tab.

It works with MacOS or Linux but is no longer actively supported.

TerminalView in SublimeText

Installation:

  1. Open the command palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows) and find Package Control: Install Package
  2. Search for TerminalView and hit Return to install.

The terminal windows has a few flaws (at least on macOS) as it seems to conflict with Sublime's keyboard shortcuts. I however use it only to automatically run unit tests when the edited program code changes. Therefore it works just fine. In that case it works best if I show the terminal window below the text editor. You can do so in the menu View > Layout > Rows: 2.

Solution 4

In sublime 3,

  1. ctrl + shift + p search Package Control: Install Package
  2. Search and install TerminalView
  3. to set shortcuts, go to Preferences -> Key Bindings

on right side Pane paste this,

[
   { "keys": ["ctrl+shift+t"], "command": "terminal_view_open" }
]
  1. Now ctrl+shift+t is your shortcuts

Solution 5

I prefer Terminus and it's the first cross platform terminal for Sublime Text. Check this video it might help you

Here is Terminus

Share:
86,634
Alexander Mills
Author by

Alexander Mills

Dev, Devops, soccer coach. https://www.github.com/oresoftware

Updated on July 09, 2022

Comments

  • Alexander Mills
    Alexander Mills almost 2 years

    I normally use the WebStorm IDE for Node.js and FE JavaScript development. However I was thinking of using Sublime Text 3 since I am running out of computing power on a crappy old Macbook Pro and ST3 should be lighter on memory and CPU.

    However, my one hangup is that ST3 doesn't seem to have a command line terminal integration possible. I find this to be a very useful feature that's available in Eclipse and WebStorm.

    I did some Googling and I don't see any great terminal integration plugins for ST3, is there such a thing or not?

    Here is WebStorm with the terminal integrated:

    enter image description here

  • Alexander Mills
    Alexander Mills almost 9 years
    that sucks :( am I the only one that as a result of this discovery find ST3 to be unusable?
  • np8
    np8 over 6 years
    Note: TerminalView needs Linux-based OS.
  • Lars Blumberg
    Lars Blumberg over 6 years
    VSCode has a very good terminal extension. That made me abandon Sublime Text.
  • np8
    np8 over 6 years
    Lol. Just migrated from Sublime to VSCode like 3 hours ago. It feels really good. I am surprised it is a free product!
  • Alexander Mills
    Alexander Mills over 6 years
    Use VSCode, it's designed around Node.js, from Microsoft, and it has an integrated terminal: code.visualstudio.com
  • adriendenat
    adriendenat over 6 years
    Did the same but I had to go back to ST due to the poor tabs management on VSC. Just copy/paste the ST tabs UX and take my money.
  • Alexander Mills
    Alexander Mills over 5 years
    VSCode integrated terminal is much better than ST3. Intellij also has a good one.
  • Nithin
    Nithin over 5 years
    VScode, will give it a try. Recently moved out from Atom.
  • limp_chimp
    limp_chimp about 5 years
    I'd say opposite... if the ST team had a VSCode style editor integration, they could take my money for sure! :) As it is I'm using emacs...
  • Lemon
    Lemon about 5 years
    This answer is wrong. There's a package, packagecontrol.io/packages/Terminus, which allows you to open a terminal both in a tab and and in a panel (like in the screenshot).
  • Lemon
    Lemon about 5 years
    @AlexanderMills yes, in this case, you might actually be the only one. There is a package that adds this functionality, and even if there wasn't, it still wouldn't make ST3 "unusable". A terminal built-in to the editor, or ide for that matter, is a nice-to-have feature, it's not critical. If you don't have it, you just use separate regular terminal window instead, which I usually do even when I do have an integrated option.
  • Salyangoz
    Salyangoz over 4 years
    wow! Using this and pudb made my sublime a stronger/faster/more efficient IDE than pycharm. Extremely impressive and the 'per terminal theme adustment' makes it super easy to find the terminal tab at a glance
  • roshnet
    roshnet over 4 years
    Thanks for sharing this. It'd be helpful also if you mention the key bindings (if any) to launch it. EDIT: I found how - github.com/randy3k/Terminus#user-key-bindings
  • Tobias
    Tobias almost 4 years
    I wrote a little plugin that integrates any linux terminal with Sublime. It's not as mature as Terminus but it works very well for me. github.com/tobiasrenkin/sublime-console
  • javierojeda
    javierojeda almost 4 years
    this opens terminal in a separated window. OP wants it to be opened inside of Sublime window as a integrated terminal
  • Joseph Farah
    Joseph Farah almost 3 years
    if you open a Terminus panel and then try to search for something (i.e. via cmd-F or cmd-shift-F) it closes the terminus panel. is there any way around this?
  • Meeraj Kanaparthi
    Meeraj Kanaparthi almost 3 years
    Thank you. This is awesome
  • Gabriel Staples
    Gabriel Staples about 2 years
    For anyone wondering: this works great in Sublime Text 4 too.
  • Chris Broz
    Chris Broz almost 2 years
    For high-memory applications, Terminus slows significantly.