TL;DR - Need a quick answer on how to create terminals in Sublime Text 3? Scroll down and watch the video or read the instructions below it.
A while ago I started a series on YouTube of 'Sublime Text Tips'.
My aim was to release a series of videos explaining some of these widely unknown capabilities. I got as far as the third video and then got distracted with other things 😅
The video explains how to set up terminals in Sublime Text 3 using a package called 'Terminus'. And here it is:
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.
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!
Feel free to leave comments below. You can also contact me by email here.
This comment has been removed by a blog administrator.
ReplyDelete