Skip to main content

Terminals in Sublime Text 3


If you need a quick answer on how to create terminals in Sublime Text 3, watch the following video, or read the instructions below it.



How to set up Terminals in Sublime Text 3

Open Sublime Text.
Open the Command Palette with Crtl+Shift+P

Type  'Package Control: Install Package' until the option appears and select it
[You'll need to install package control if you are using it for the first time]

Type 'Terminus' and select it.





Now the package Terminus will install. Wait for this to complete.
Then restart Sublime Text.

Next we will add Commands to the Command Palette. So you can open terminals using Crtl+Shift+P then typing a command.

To do this open the Command Palette (Ctrl+Shift+P) and type 'Terminus: Command Palette' and open it.

You'll be greeted by a split view. Basically there are settings defined in the code on the left panel and you can override them or add your own by typing code in the right panel.




Copy code from here into the right hand panel. Save the file with Ctrl+S.

This code adds commands so you can open terminals: Windows Command Prompt and Git Bash; from the Command Palette.

You'll need to edit this if you want to add your own terminals.

You can close the 'Terminus: Command Palette' window now.

To open Windows Command Prompt for example, open the Command Palette (Ctrl+Shift+P) and type 'Command Prompt (new Window)' to open it in a new tab or 'Command Prompt (panel)' to open it in a panel at the bottom of the screen.










Now we have terminals working, but we are not done.

Key Bindings


I'm a big fan of keyboard shortcuts. You can add keyboard shortcuts to open your favourite terminals for you in the following way.

Open Command Palette (Ctrl+Shift+P) and type 'Terminus: Key Bindings'
Again you'll get another split screen window and you'll need to put code in the right hand pane.

Copy and paste the code from here into the right hand pane. Save the file with Ctrl+S.

If you look through the code you'll see it adds the following shortcuts which can easily be changed:
Alt+1 - Opens Command Prompt
Alt+2 - Opens Git Bash
Alt+C - Opens Command Prompt
Alt+B - Opens Git Bash


Enjoy!

Comments

Post a Comment

Popular posts from this blog

Generating a MSI Installer for a WPF Application

This post serves as a tutorial for creating a MSI installer for your WPF Applications in Visual Studio. For this we use WiX (recommended by Microsoft). Prerequisites I assume you already have a Visual Studio solution containing a WPF Project. And I assume you have some experience with Visual Studio and XML. You do not need any prior knowledge of WiX. Step 1: Install Wix We are going to need WiX to generate our MSI. If you don't already have Wix installed, go ahead and download it from here . You'll be redirected to the relevant GitHub releases page where you can download the .exe file to install WiX.

Fill your GitHub activity heatmap with the image of your choice

Taking 12 months to upload a 52x7 pixel image, through thousands of git commits, ... that's completely reasonable right?