Cheat Sheet #day29 - Sublime Text

Cheat Sheet #day29 - Sublime Text

Sublime Text Cheatsheet

General

  • Open File: Command + O (Mac) / Ctrl + O (Windows/Linux)

  • Save File: Command + S / Ctrl + S

  • Close File: Command + W / Ctrl + W

  • New File: Command + N / Ctrl + N

  • Open Recent File: Command + E / Ctrl + E

  • Reopen Last Closed File: Command + Shift + T / Ctrl + Shift + T

Editing

  • Cut Line: Command + X / Ctrl + X

  • Copy Line: Command + C / Ctrl + C

  • Paste: Command + V / Ctrl + V

  • Undo: Command + Z / Ctrl + Z

  • Redo: Command + Shift + Z / Ctrl + Y

  • Select All: Command + A / Ctrl + A

  • Duplicate Line: Command + Shift + D / Ctrl + Shift + D

  • Delete Line: Command + Shift + K / Ctrl + Shift + K

  • Comment/Uncomment Line: Command + / / Ctrl + /

  • Indent Line: Command + ] / Ctrl + ]

  • Outdent Line: Command + [ / Ctrl + [

  • Move Line Up: Command + Ctrl + Up Arrow / Ctrl + Shift + Up Arrow

  • Move Line Down: Command + Ctrl + Down Arrow / Ctrl + Shift + Down Arrow

  • Split Selection into Lines: Command + Shift + L / Ctrl + Shift + L

Navigation

  • Go to Line: Command + L / Ctrl + G

  • Go to Symbol: Command + R / Ctrl + R

  • Go to Definition: F12

  • Go to Anything: Command + P / Ctrl + P

  • Next File Tab: Control + Tab

  • Previous File Tab: Control + Shift + Tab

  • Next View: Command + Option + Right Arrow / Alt + Shift + Right Arrow

  • Previous View: Command + Option + Left Arrow / Alt + Shift + Left Arrow

Find and Replace

  • Find: Command + F / Ctrl + F

  • Find Next: Command + G / F3

  • Find Previous: Command + Shift + G / Shift + F3

  • Replace: Command + Option + F / Ctrl + H

  • Replace All: Command + Option + Enter / Alt + Enter

  • Incremental Find: Command + I / Ctrl + I

  • Find in Files: Command + Shift + F / Ctrl + Shift + F

Markup

  • Balance (Match) Braces: Command + M / Ctrl + M

  • Select Scope: Command + Shift + Space / Ctrl + Shift + Space

Miscellaneous

  • Command Palette: Command + Shift + P / Ctrl + Shift + P

  • Toggle Sidebar: Command + K, Command + B / Ctrl + K, Ctrl + B

  • Toggle Distraction Free Mode: Shift + F11

  • Toggle Full Screen Mode: F11

  • Show Console: Control +

Customization

  • Preferences: Command + , / Ctrl + ,

  • Install Package Control: Command + Shift + P / Ctrl + Shift + P, then type "Install Package Control"

  • Install Packages: Command + Shift + P / Ctrl + Shift + P, then type "Install Package"

Multi-File Operations

  • Open Folder: Command + O / Ctrl + O

  • Search in Folder: Command + Shift + F / Ctrl + Shift + F

Advanced

  • Run Build: Command + B / Ctrl + B

  • Run Build with Options: Command + Shift + B / Ctrl + Shift + B

  • Toggle Comment Block: Command + Option + / / Ctrl + Shift + /

Code Folding

  • Fold: Command + Option + [ / Ctrl + Shift + [

  • Unfold: Command + Option + ] / Ctrl + Shift + ]

  • Fold All: Command + K, Command + 1 / Ctrl + K, Ctrl + 1

  • Unfold All: Command + K, Command + J / Ctrl + K, Ctrl + J

Multi-Select and Editing

  • Add Cursor to Next Line: Command + Option + Down Arrow / Ctrl + Alt + Down Arrow

  • Add Cursor to Previous Line: Command + Option + Up Arrow / Ctrl + Alt + Up Arrow

  • Select Next Occurrence of Word: Command + D / Ctrl + D

  • Select All Occurrences of Word: Command + Ctrl + G / Alt + F3

  • Quick Add Next: Command + K, Command + D / Ctrl + K, Ctrl + D

Macros

  • Record Macro: Command + Option + Q / Ctrl + Alt + Q

  • Playback Macro: Command + Option + Shift + Q / Ctrl + Alt + Shift + Q


This cheatsheet covers the essential shortcuts and commands for Sublime Text, enabling you to work more efficiently and effectively. Sublime Text's extensive capabilities can be further expanded through plugins and customizations to suit your personal workflow.

Did you find this article valuable?

Support Cloud Tuned by becoming a sponsor. Any amount is appreciated!