Guida al cheat sheet
VS Code scorciatoie da imparare per prime
Questa pagina raccoglie 81 scorciatoie da tastiera cercabili per VS Code in 10 categorie. Parti dalle categorie principali, poi stampa il cheat sheet quando vuoi tenerlo a portata di mano.
- Cambia scheda OS per vedere scorciatoie Windows, macOS o Linux.
- Usa / per passare subito alla ricerca.
- Usa la modalita confronto quando lavori su macchine diverse.
- Stampa o salva la pagina come cheat sheet PDF compatto.
Generale
6 shortcuts
Show Palette comandi
Ctrl+Shift+P
WinCtrl+Shift+P
Mac⌘⇧P
LinuxCtrl+Shift+P
Quick Open / Go to File
Ctrl+P
WinCtrl+P
Mac⌘P
LinuxCtrl+P
New Window
Ctrl+Shift+N
WinCtrl+Shift+N
Mac⌘⇧N
LinuxCtrl+Shift+N
Chiudi finestra
Ctrl+Shift+W
WinCtrl+Shift+W
Mac⌘⇧W
LinuxCtrl+Shift+W
User Settings
Ctrl+,
WinCtrl+,
Mac⌘,
LinuxCtrl+,
Scorciatoie da tastiera
Ctrl+KCtrl+S
WinCtrl+KCtrl+S
Mac⌘K⌘S
LinuxCtrl+KCtrl+S
Modifica
19 shortcuts
Taglia line (empty selection)
Ctrl+X
WinCtrl+X
Mac⌘X
LinuxCtrl+X
Copia line (empty selection)
Ctrl+C
WinCtrl+C
Mac⌘C
LinuxCtrl+C
Move line up/down
Alt+↑/↓
WinAlt+↑/↓
Mac⌥↑/↓
LinuxAlt+↑/↓
Copia line up/down
Alt+Shift+↑/↓
WinAlt+Shift+↑/↓
Mac⌥⇧↑/↓
LinuxAlt+Shift+↑/↓
Elimina line
Ctrl+Shift+K
WinCtrl+Shift+K
Mac⌘⇧K
LinuxCtrl+Shift+K
Insert line below
Ctrl+Enter
WinCtrl+Enter
Mac⌘Enter
LinuxCtrl+Enter
Insert line above
Ctrl+Shift+Enter
WinCtrl+Shift+Enter
Mac⌘⇧Enter
LinuxCtrl+Shift+Enter
Jump to matching bracket
Ctrl+Shift+\
WinCtrl+Shift+\
Mac⌘⇧\
LinuxCtrl+Shift+\
Indent / outdent line
Ctrl+]/Ctrl+[
WinCtrl+]/Ctrl+[
Mac⌘]/⌘[
LinuxCtrl+]/Ctrl+[
Go to beginning of line
Home
WinHome
MacHome
LinuxHome
Go to end of line
End
WinEnd
MacEnd
LinuxEnd
Go to beginning of file
Ctrl+Home
WinCtrl+Home
Mac⌘↑
LinuxCtrl+Home
Go to end of file
Ctrl+End
WinCtrl+End
Mac⌘↓
LinuxCtrl+End
Toggle line comment
Ctrl+/
WinCtrl+/
Mac⌘/
LinuxCtrl+/
Toggle block comment
Alt+Shift+A
WinAlt+Shift+A
Mac⇧⌥A
LinuxAlt+Shift+A
Annulla
Ctrl+Z
WinCtrl+Z
Mac⌘Z
LinuxCtrl+Z
Ripeti
Ctrl+Y
WinCtrl+Y
Mac⌘⇧Z
LinuxCtrl+Y
Formatta documento
Alt+Shift+F
WinAlt+Shift+F
Mac⌥⇧F
LinuxCtrl+Shift+I
Formatta selezione
Ctrl+KCtrl+F
WinCtrl+KCtrl+F
Mac⌘K⌘F
LinuxCtrl+KCtrl+F
Multi-cursor & Selection
7 shortcuts
Insert cursor above/below
Alt+Ctrl+↑/↓
WinAlt+Ctrl+↑/↓
Mac⌥⌘↑/↓
LinuxAlt+Ctrl+↑/↓
Annulla last cursor
Ctrl+U
WinCtrl+U
Mac⌘U
LinuxCtrl+U
Seleziona tutto occurrences of current selection
Ctrl+Shift+L
WinCtrl+Shift+L
Mac⌘⇧L
LinuxCtrl+Shift+L
Seleziona tutto occurrences of current word
Ctrl+F2
WinCtrl+F2
Mac⌘F2
LinuxCtrl+F2
Add selection to next find match
Ctrl+D
WinCtrl+D
Mac⌘D
LinuxCtrl+D
Select current line
Ctrl+L
WinCtrl+L
Mac⌘L
LinuxCtrl+L
Column (box) selection
Shift+Alt+drag
WinShift+Alt+drag
Mac⇧⌥drag
LinuxShift+Alt+drag
Search & Replace
8 shortcuts
Trova
Ctrl+F
WinCtrl+F
Mac⌘F
LinuxCtrl+F
Replace
Ctrl+H
WinCtrl+H
Mac⌥⌘F
LinuxCtrl+H
Trova next/previous
F3/Shift+F3
WinF3/Shift+F3
Mac⌘G/⌘⇧G
LinuxF3/Shift+F3
Toggle case-sensitive
Alt+C
WinAlt+C
Mac⌥⌘C
LinuxAlt+C
Toggle regex
Alt+R
WinAlt+R
Mac⌥⌘R
LinuxAlt+R
Toggle whole word
Alt+W
WinAlt+W
Mac⌥⌘W
LinuxAlt+W
Search in files
Ctrl+Shift+F
WinCtrl+Shift+F
Mac⌘⇧F
LinuxCtrl+Shift+F
Replace in files
Ctrl+Shift+H
WinCtrl+Shift+H
Mac⌘⇧H
LinuxCtrl+Shift+H
Navigazione
9 shortcuts
Vai alla riga
Ctrl+G
WinCtrl+G
Mac⌃G
LinuxCtrl+G
Go to symbol in file
Ctrl+Shift+O
WinCtrl+Shift+O
Mac⌘⇧O
LinuxCtrl+Shift+O
Go to symbol in workspace
Ctrl+T
WinCtrl+T
Mac⌘T
LinuxCtrl+T
Vai alla definizione
F12
WinF12
MacF12
LinuxF12
Peek definition
Alt+F12
WinAlt+F12
Mac⌥F12
LinuxAlt+F12
Open definition to side
Ctrl+KF12
WinCtrl+KF12
Mac⌘KF12
LinuxCtrl+KF12
Go back / forward
Alt+←/Alt+→
WinAlt+←/Alt+→
Mac⌃-/⌃⇧-
LinuxAlt+←/Alt+→
Go to next error/warning
F8
WinF8
MacF8
LinuxF8
Show all references
Alt+Shift+F12
WinAlt+Shift+F12
Mac⇧F12
LinuxAlt+Shift+F12
Editor Management
6 shortcuts
Chiudi editor
Ctrl+W
WinCtrl+W
Mac⌘W
LinuxCtrl+W
Chiudi folder
Ctrl+KF
WinCtrl+KF
Mac⌘KF
LinuxCtrl+KF
Split editor
Ctrl+\
WinCtrl+\
Mac⌘\
LinuxCtrl+\
Focus 1st/2nd/3rd editor group
Ctrl+1/2/3
WinCtrl+1/2/3
Mac⌘1/2/3
LinuxCtrl+1/2/3
Move editor left/right
Ctrl+Shift+PgUp/PgDn
WinCtrl+Shift+PgUp/PgDn
Mac⌘⇧PgUp/PgDn
LinuxCtrl+Shift+PgUp/PgDn
New editor group to the left/right
Ctrl+K←/→
WinCtrl+K←/→
Mac⌘K←/→
LinuxCtrl+K←/→
Gestione file
7 shortcuts
Nuovo file
Ctrl+N
WinCtrl+N
Mac⌘N
LinuxCtrl+N
Apri file
Ctrl+O
WinCtrl+O
Mac⌘O
LinuxCtrl+O
Save
Ctrl+S
WinCtrl+S
Mac⌘S
LinuxCtrl+S
Save as
Ctrl+Shift+S
WinCtrl+Shift+S
Mac⌘⇧S
LinuxCtrl+Shift+S
Save all
Ctrl+KS
WinCtrl+KS
Mac⌘⌥S
LinuxCtrl+KS
Revert file
—
Win—
Mac—
Linux—
Chiudi all editors
Ctrl+KCtrl+W
WinCtrl+KCtrl+W
Mac⌘K⌘W
LinuxCtrl+KCtrl+W
Display
7 shortcuts
Toggle full screen
F11
WinF11
Mac⌃⌘F
LinuxF11
Toggle sidebar
Ctrl+B
WinCtrl+B
Mac⌘B
LinuxCtrl+B
Mostra/nascondi terminale
Ctrl+`
WinCtrl+`
Mac⌃`
LinuxCtrl+`
Toggle problems panel
Ctrl+Shift+M
WinCtrl+Shift+M
Mac⌘⇧M
LinuxCtrl+Shift+M
Zoom in/out
Ctrl+=/Ctrl+-
WinCtrl+=/Ctrl+-
Mac⌘=/⌘-
LinuxCtrl+=/Ctrl+-
Reset zoom
Ctrl+0
WinCtrl+0
Mac⌘0
LinuxCtrl+0
Zen mode
Ctrl+KZ
WinCtrl+KZ
Mac⌘KZ
LinuxCtrl+KZ
Debug
7 shortcuts
Toggle breakpoint
F9
WinF9
MacF9
LinuxF9
Start / continue debug
F5
WinF5
MacF5
LinuxF5
Stop debug
Shift+F5
WinShift+F5
Mac⇧F5
LinuxShift+F5
Step over
F10
WinF10
MacF10
LinuxF10
Step into
F11
WinF11
MacF11
LinuxF11
Step out
Shift+F11
WinShift+F11
Mac⇧F11
LinuxShift+F11
Show hover
Ctrl+KCtrl+I
WinCtrl+KCtrl+I
Mac⌘K⌘I
LinuxCtrl+KCtrl+I
Terminale integrato
5 shortcuts
Create new terminal
Ctrl+Shift+`
WinCtrl+Shift+`
Mac⌃⇧`
LinuxCtrl+Shift+`
Copia selection
Ctrl+C
WinCtrl+C
Mac⌘C
LinuxCtrl+C
Scroll up/down
Ctrl+↑/↓
WinCtrl+↑/↓
Mac⌘↑/↓
LinuxCtrl+↑/↓
Scroll page up/down
Shift+PgUp/PgDn
WinShift+PgUp/PgDn
Mac⇧PgUp/PgDn
LinuxShift+PgUp/PgDn
Scroll to top/bottom
Ctrl+Home/End
WinCtrl+Home/End
Mac⌘Home/End
LinuxCtrl+Home/End
Domande frequenti
What is the fastest way to find VS Code shortcuts on this page?
Use the search box or press /, then type an action such as show command palette.
Can I print this VS Code shortcut cheat sheet?
Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.
Does this page include Windows and Mac shortcuts for VS Code?
Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, Show Command Palette is Ctrl+Shift+P on Windows and ⌘⇧P on macOS where available.
Advertisement