Sublime Text Keyboard Shortcuts

Sublime Text — one of the most popular text and code editors among developers. It combines high performance, support for multiple programming languages, flexible customization, and a huge number of plugins.

One of Sublime Text's strong points — hotkey support, which allows you to quickly edit code, instantly navigate through files and projects, efficiently manage code structure and editor windows. Interesting fact: the modern QWERTY layout we use every day was created by Christopher Sholes in the 1870s, and many developers are still interested in who invented the keyboard in its current form.

File and Tab Management

Windows/Linux | macOS — action

  • Ctrl + N | ⌘ + N — create new file.
  • Ctrl + O | ⌘ + O — open file.
  • Ctrl + S | ⌘ + S — save file.
  • Ctrl + Shift + S | ⌘ + Shift + S — save as.
  • Ctrl + W | ⌘ + W — close tab.
  • Ctrl + Shift + T | ⌘ + Shift + T — restore closed tab.
  • Ctrl + Tab | ⌘ + ⇥ — switch between tabs.
  • Ctrl + Page Up / Down | ⌘ + Option + ←/→ — switch tabs left/right.
  • Alt + number | ⌘ + number — go to tab with specified number.

Text and Code Editing

  • Ctrl + C / Ctrl + X / Ctrl + V | ⌘ + C / ⌘ + X / ⌘ + V — copy / cut / paste.
  • Ctrl + A | ⌘ + A — select all.
  • Ctrl + Z / Ctrl + Y | ⌘ + Z / ⌘ + Shift + Z — undo / redo.
  • Ctrl + Shift + ↑ / ↓ | ⌘ + Ctrl + ↑ / ↓ — move line up/down.
  • Ctrl + D | ⌘ + D — select word or add next occurrence.
  • Ctrl + L | ⌘ + L — select line.
  • Ctrl + Shift + L | ⌘ + Shift + L — split selection into multiple cursors.
  • Ctrl + / | ⌘ + / — comment/uncomment line.
  • Ctrl + Shift + / | ⌘ + Option + / — block comment.
  • Tab / Shift + Tab — add/remove indent.

Code and Document Navigation

  • Ctrl + P | ⌘ + P — quick file navigation.
  • Ctrl + G | ⌘ + G — go to line.
  • Ctrl + R | ⌘ + R — go to function/method.
  • Ctrl + ; | ⌘ + ; — go to symbol.
  • Ctrl + M | ⌘ + M — go to matching bracket.
  • Ctrl + Page Up / Down — navigate between tabs.
  • F3 / Shift + F3 | ⌘ + G / ⌘ + Shift + G — find next/previous occurrence.

Search and Replace

  • Ctrl + F | ⌘ + F — search.
  • Ctrl + H | ⌘ + Option + F — replace.
  • Ctrl + Shift + F | ⌘ + Shift + F — search in project.
  • Alt + Enter | ⌘ + Ctrl + G — select all found matches.

Multiple Cursors and Selections

  • Ctrl + Click | ⌘ + Click — add cursor.
  • Ctrl + Alt + ↑ / ↓ | ⌘ + Option + ↑ / ↓ — add cursor on adjacent line.
  • Ctrl + Shift + L | ⌘ + Shift + L — split selection into multiple cursors.
  • Ctrl + D | ⌘ + D — add next word occurrence.

Code Formatting and Structure

  • Ctrl + Shift + P | ⌘ + Shift + P — command palette.
  • Ctrl + K, Ctrl + B | ⌘ + K, ⌘ + B — show/hide sidebar.
  • Ctrl + K, Ctrl + U | ⌘ + K, ⌘ + U — convert to uppercase.
  • Ctrl + K, Ctrl + L | ⌘ + K, ⌘ + L — convert to lowercase.
  • Ctrl + ] / Ctrl + [ | ⌘ + ] / ⌘ + [ — increase/decrease indent.
  • Ctrl + Shift + K | ⌘ + Shift + K — delete line.

When working with code in Sublime Text, it's especially important to pay attention to syntax and punctuation. If you're writing documentation or comments and are unsure where to place commas in complex sentences, it's recommended to use built-in checking tools or special grammar plugins.

Project and Panel Management

  • Ctrl + Shift + N | ⌘ + Shift + N — new window.
  • Ctrl + Alt + P | ⌘ + Ctrl + P — switch projects.
  • Alt + Shift + number | ⌘ + Option + number — switch between panels.
  • Ctrl + K, Ctrl + ← / → | ⌘ + K, ⌘ + ← / → — move file to another panel.

Macros and Advanced Functions

  • Ctrl + Q | ⌘ + Q — repeat last command.
  • Ctrl + Shift + Q — record macro (depending on configuration).
  • Ctrl + Shift + P | ⌘ + Shift + P — run macros and plugins through command palette.

Sublime Text — a tool where hotkeys significantly increase productivity. If you want to work in Sublime Text at a professional level, start by learning basic commands (Ctrl/⌘ + P, Ctrl/⌘ + D, Ctrl/⌘ + /) and gradually master advanced features. This will allow you to fully unlock the editor's potential.

Contacts

Nuyskov Roman AlexandrovichTIN 583413885669Moskovskaya st., 6, office 1, Penza, 440026, Russia
We use cookies to provide personalized information and to collect technical data that will help improve user experience when working with the site. If you don't want cookies to be used, please change your browser settings.

©2024-2025 qwerty.school