« Home

Sublime text basics

Tabs

Command palette

If you don’t know hotkeys for a command, or don’t know if such a command even exists, use command palette. It’s the first place where you should search for unknown commands. To open the command palette, press Ctrl - Shift - p, and then type command name. For example, you want to transform selected text to upper case. This is what you should do:

  1. Ctrl - Shift - p
  2. Type text “lower”
  3. Select “Convert case: Lower case” command ( moving arrows ), and press Enter (or click )

Layouts

Sublime Text allows you to open a few tabs side by side.

You can move between layout windows with Ctrl + <number> hotkeys. Ctrl - 0 - move to the sidebar, Ctrl - 1 - move to the first tab, Ctrl - 2 - move to the second tab, and so on.

Line manipulation

How to install packages (plugins)

First, you need to install package control. It’s the Sublime Text package manager.

  1. Open control palette (Ctrl - Shift - p)
  2. Type “Install package control”, press enter
  3. When package control is installed, open control palette and type “Install package” - press enter.
  4. Then start typing package name, for example “Color scheme”. Sublime Text will show related packages.

Multiple cursors

Sublime Text has a great support for working with multiple cursors. To set an additional cursor, use Ctrl - click. Then, all commands ( like moving cursor, char/word deletion etc) will be applied to all cursors.

There’s also nice feature in Sublime Text - you can select next occurance of the current word. It works this way:

  1. Press Ctrl - d on current word. It will be selected.
  2. Press Ctrl - d one more time. The next occurance of this word will be selected.

This is useful when you want, for example, delete or replace some occurances of a word.

Working with code

These commands may be useful for programmers.