Sublime Text Cheat Sheet

Sublime Text is a popular text editor known for its speed and ease of use. Below is a cheat sheet covering essential keyboard shortcuts and commands in Sublime Text:

Basic Navigation

  • Open File:
    • Ctrl + O (Windows/Linux)
    • Cmd + O (Mac)
  • Save File:
    • Ctrl + S (Windows/Linux)
    • Cmd + S (Mac)
  • Save As:
    • Ctrl + Shift + S (Windows/Linux)
    • Cmd + Shift + S (Mac)
  • Close File:
    • Ctrl + W (Windows/Linux)
    • Cmd + W (Mac)
  • Close All Files:
    • Ctrl + Shift + W (Windows/Linux)
    • Cmd + Shift + W (Mac)

Editing

  • Undo:
    • Ctrl + Z (Windows/Linux)
    • Cmd + Z (Mac)
  • Redo:
    • Ctrl + Y (Windows/Linux)
    • Cmd + Y (Mac)
  • Cut:
    • Ctrl + X (Windows/Linux)
    • Cmd + X (Mac)
  • Copy:
    • Ctrl + C (Windows/Linux)
    • Cmd + C (Mac)
  • Paste:
    • Ctrl + V (Windows/Linux)
    • Cmd + V (Mac)
  • Select All:
    • Ctrl + A (Windows/Linux)
    • Cmd + A (Mac)

Navigation within File

  • Move to Beginning of Line:
    • Ctrl + A (Windows/Linux)
    • Cmd + Left Arrow (Mac)
  • Move to End of Line:
    • Ctrl + E (Windows/Linux)
    • Cmd + Right Arrow (Mac)
  • Move to Specific Line:
    • Ctrl + G (Windows/Linux)
    • Cmd + G (Mac)

Search and Replace

  • Find:
    • Ctrl + F (Windows/Linux)
    • Cmd + F (Mac)
  • Replace:
    • Ctrl + H (Windows/Linux)
    • Cmd + Option + F (Mac)

Advanced Editing

  • Multiple Cursors:
    • Ctrl + Click (Windows/Linux/Mac)
  • Column Selection:
    • Ctrl + Shift + Up/Down Arrow (Windows/Linux/Mac)
  • Duplicate Line:
    • Ctrl + Shift + D (Windows/Linux)
    • Cmd + Shift + D (Mac)
  • Toggle Comment:
    • Ctrl + / (Windows/Linux)
    • Cmd + / (Mac)

View and Layout

  • Toggle Sidebar:
    • Ctrl + K, Ctrl + B (Windows/Linux)
    • Cmd + K, Cmd + B (Mac)
  • Split Layout:
    • Alt + Shift + 1 (Windows/Linux)
    • Cmd + Option + 1 (Mac)
  • Toggle Full Screen:
    • F11 (Windows/Linux)
    • Cmd + Ctrl + F (Mac)

Command Palette

  • Open Command Palette:
    • Ctrl + Shift + P (Windows/Linux)
    • Cmd + Shift + P (Mac)
  • Access Package Control:
    • Ctrl + Shift + P > Package Control: Install Package

This cheat sheet covers some of the basic and commonly used shortcuts in Sublime Text.