Cheatsheet Sublime Text
Editor de código leve e rápido, multiplataforma
Sublime Text
file
New file
Ctrl + N
Creates a new file.
Close tab
Ctrl + W
Closes the active tab.
Open file
Ctrl + O
Opens a file.
Reopen tab
Ctrl + Shift + T
Reopens the last closed tab.
Save
Ctrl + S
Saves the current file.
Toggle sidebar
Ctrl + K, Ctrl + B
Shows or hides the sidebar.
Save the
Ctrl + Shift + S
Saves with a new name.
Edition
Undo / Redo
Ctrl + Z (undo)
Ctrl + Shift + Z (redo)
Reverts or reapplies actions.
Comment line
Ctrl + /
Comments or uncomments the line.
Uppercase / lowercase
Ctrl + K, Ctrl + U (UPPERCASE)
Ctrl + K, Ctrl + L (lowercase)
Converts the text case.
Duplicate line
Ctrl + Shift + D
Duplicates the current line.
Comment block
Ctrl + Shift + /
Comments the selected block.
Delete line
Ctrl + Shift + K
Removes the current line.
Indent / unindent
Ctrl + ] (indent)
Ctrl + [ (unindent)
Adjusts the indentation.
Move line
Ctrl + Shift + ↑ (up)
Ctrl + Shift + ↓ (down)
Moves the current line.
Join lines
Ctrl + J
Joins the next line to the current one.
Multi-cursor and Selection
Select next occurrence
Ctrl + D
Selects the next matching word and adds a cursor.
Add cursor
Ctrl + Click
Adds a cursor wherever you click.
Skip occurrence
Ctrl + K, Ctrl + D
Skips the current occurrence and moves to the next.
Cursors on multiple lines
Ctrl + Alt + ↑ / ↓
Adds cursors above/below.
Select all occurrences
Alt + F3
Adds a cursor at every occurrence of the word.
Select line
Ctrl + L
Selects the whole line.
Split selection into lines
Ctrl + Shift + L
Creates a cursor on each selected line.
Undo last cursor
Ctrl + U
Removes the last cursor added.
Search and Navigation
Search
Ctrl + F
Opens search in the file.
Go to file
Ctrl + P
Opens any file by name (Go to Anything).
Replace
Ctrl + H
Opens replace.
Go to line
Ctrl + G
Jumps to a line number.
Search in files
Ctrl + Shift + F
Searches across the whole project.
Go to symbol
Ctrl + R
Lists functions/classes in the file.
Next / previous
F3 (next)
Shift + F3 (previous)
Navigates through the results.
Commands and Views
Command palette
Ctrl + Shift + P
Opens the palette with all commands.
Column layout
Alt + Shift + 2 (2 columns)
Alt + Shift + 3 (3 columns)
Alt + Shift + 1 (1 column)
Splits the screen into columns.
Console
Ctrl + `
Opens the built-in Python console.
Switch tabs
Ctrl + Tab
Ctrl + Shift + Tab
Navigates between open tabs.
Full screen
F11
Enables full screen.
Distraction-free mode
Shift + F11
Hides everything except the text.
Code
Autocomplete
Ctrl + Space
Shows autocomplete suggestions.
Expand selection
Ctrl + Shift + A
Expands the selection to the parent tag.
Go to bracket
Ctrl + M
Jumps to the matching bracket/brace.
Select content
Ctrl + Shift + M
Selects everything inside the brackets.
Wrap selection
Ctrl + Shift + W
Wraps the selection with an HTML tag.