12 Sublime Text Tips and Shortcuts for a Faster Workflow

Sublime text is considered one of the minimalist and simplest code editors. This will provide you with the comprehensive taste of usability of each feature. You’ll be mesmerized by counting cool stuff of this IDE. To accelerate your coding access, here are the top 10 sublime text tips you can use.

Package Control

Before using Sublime Text, you should start package control. And after installing this, you are now able to acquire package control action within the command palette through pressing CTRL/⌘-SHIFT-P.

Remove Duplicated Lines

  • Edit > Permute Lines > Unique
 
Afghanistan
Algeria
Australia
Bahrain
Dominica
Austria
Austria
Azerbaijan
Bahrain
Algeria
Dominica
Azerbaijan

Results:

Afghanistan
Algeria
Australia
Bahrain
Dominica
Austria
Azerbaijan

Split Window for Single File

  • File menu -> New View into File
  • View menu -> Layout -> Columns: 2 or Rows: 2

Quick-Go to Line, and Symbol

The sublime text makes it simple to navigate between many files without using your mouse. All you have to do is to follow this command.

  • Ctrl + P (Windows, Linux)
  • Cmd + P (Mac)

Quick-Go to Matching Bracket

Another valuable tip for programmers is the capability to teleport to a matching brace directly. This is valuable in brace heavy languages, but also useful when you are lost in nested-parentheses. All you need to do is to press:

  • Ctrl + M (Windows, Linux)
  • Cmd + M (Mac)

Search in the Entire Project

Perhaps you already know how to utilize the Find function to search for text in the current document. However, sublime text makes it easy to look for a whole project folder. Just follow these commands:

  • Ctrl + Shift + F (Windows, Linux)
  • Cmd + Shift + F (Mac)

Duplicate Current Line

Line duplication is a mundane attribute in modern text editors, but it is valuable to understand the shortcut for it within the sublime text.

  • Ctrl + Shift + D (Linux and Windows)
  • Cmd + Shift + D (Mac)

Shift Line Up and Down

If you have written lines of code and want to move it elsewhere, copy and paste is the best approach. But, it only works well for big text. For small text, there is a simple way to do it. Just choose the text you like to move and press:

  • Ctrl + Shift + Up or Down (Linux and Windows )
  • Ctrl + Cmd + Up or Down for Mac

Instant Comment

In the sublime text, making an instant comment is now easier by following these steps:

  • Ctrl + / (for Linux and Windows)
  • Cmd + / ( for Mac)

Select or Erase Current Line

For many times, people used to utilize a double keystroke to highlight the line of code. However, you may find it hard if you use a compact keyboard. Luckily, the Sublime Text has a faster way of doing it:

  • Ctrl + L ( for Linux and Windows)
  • Cmd + L (for Mac)

Utilize Multiple Panes

If you are utilizing a big screen resolution, then perhaps you do not need the whole width of the screen for one document. You can do this by splitting Sublime Text by following this method.

Click View go to Layout go to Columns, you can also press Alt + Shift + 2, and that’s it!

Utilize Command Palette

To introduce the Command Palette, all you need to do is to press:

  • Ctrl + Shift + P ( if you are using Windows and Linux)
  • Cmd + Shift + P (is you are using Mac)

With Command Palette, you can carry out any command that is obtainable to Sublime Text.