Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3 - integrated terminal?

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

like image 229
Alexander Mills Avatar asked Jul 15 '15 19:07

Alexander Mills


People also ask

Does Sublime Text 3 have a terminal?

Sublime by default does not have terminal integrated. Terminus is a cross-platform terminal for sublime. To install Terminus – COMMAND PALLET [ CTRL + SHIFT + P ] → INSTALL PACKAGE → TERMINUS.

How do I use the console in Sublime Text 3?

When you press CTRL + b it will compile your code and run your executable file. A few syntaxes and options that you can use: http://sublimetext.info/docs/en/reference/build_systems.html There are definitely many more other options that you can declare in the build system. A very useful one is file_regex .


2 Answers

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

like image 53
Svish Avatar answered Sep 21 '22 17:09

Svish


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.

like image 25
Lars Blumberg Avatar answered Sep 17 '22 17:09

Lars Blumberg