Guide du cheat sheet
VS Code raccourcis a apprendre en premier
Cette page rassemble 81 raccourcis clavier consultables pour VS Code dans 10 categories. Commencez par les categories principales, puis imprimez la fiche si vous voulez la garder a portee de main.
- Changez d'onglet OS pour voir les raccourcis Windows, macOS ou Linux.
- Utilisez / pour lancer la recherche immediatement.
- Utilisez le mode comparaison entre plusieurs machines.
- Imprimez ou enregistrez la page en PDF compact.
General
6 shortcuts
Show Palette de commandes
Ctrl+Shift+P
WinCtrl+Shift+P
Mac⌘⇧P
LinuxCtrl+Shift+P
Quick Open / Go to Fichier
Ctrl+P
WinCtrl+P
Mac⌘P
LinuxCtrl+P
New Window
Ctrl+Shift+N
WinCtrl+Shift+N
Mac⌘⇧N
LinuxCtrl+Shift+N
Fermer la fenetre
Ctrl+Shift+W
WinCtrl+Shift+W
Mac⌘⇧W
LinuxCtrl+Shift+W
User Settings
Ctrl+,
WinCtrl+,
Mac⌘,
LinuxCtrl+,
Raccourcis clavier
Ctrl+KCtrl+S
WinCtrl+KCtrl+S
Mac⌘K⌘S
LinuxCtrl+KCtrl+S
Edition
19 shortcuts
Couper line (empty selection)
Ctrl+X
WinCtrl+X
Mac⌘X
LinuxCtrl+X
Copier line (empty selection)
Ctrl+C
WinCtrl+C
Mac⌘C
LinuxCtrl+C
Move line up/down
Alt+↑/↓
WinAlt+↑/↓
Mac⌥↑/↓
LinuxAlt+↑/↓
Copier line up/down
Alt+Shift+↑/↓
WinAlt+Shift+↑/↓
Mac⌥⇧↑/↓
LinuxAlt+Shift+↑/↓
Supprimer 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
Annuler
Ctrl+Z
WinCtrl+Z
Mac⌘Z
LinuxCtrl+Z
Retablir
Ctrl+Y
WinCtrl+Y
Mac⌘⇧Z
LinuxCtrl+Y
Formater le document
Alt+Shift+F
WinAlt+Shift+F
Mac⌥⇧F
LinuxCtrl+Shift+I
Formater la selection
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+↑/↓
Annuler last cursor
Ctrl+U
WinCtrl+U
Mac⌘U
LinuxCtrl+U
Tout selectionner occurrences of current selection
Ctrl+Shift+L
WinCtrl+Shift+L
Mac⌘⇧L
LinuxCtrl+Shift+L
Tout selectionner 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
Rechercher
Ctrl+F
WinCtrl+F
Mac⌘F
LinuxCtrl+F
Replace
Ctrl+H
WinCtrl+H
Mac⌥⌘F
LinuxCtrl+H
Rechercher 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 dans files
Ctrl+Shift+F
WinCtrl+Shift+F
Mac⌘⇧F
LinuxCtrl+Shift+F
Replace dans files
Ctrl+Shift+H
WinCtrl+Shift+H
Mac⌘⇧H
LinuxCtrl+Shift+H
Navigation
9 shortcuts
Aller a la ligne
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
Aller a la definition
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
Fermer editor
Ctrl+W
WinCtrl+W
Mac⌘W
LinuxCtrl+W
Fermer 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←/→
Gestion des fichiers
7 shortcuts
Nouveau fichier
Ctrl+N
WinCtrl+N
Mac⌘N
LinuxCtrl+N
Ouvrir le fichier
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—
Fermer 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
Afficher/masquer le terminal
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
Terminal integre
5 shortcuts
Create new terminal
Ctrl+Shift+`
WinCtrl+Shift+`
Mac⌃⇧`
LinuxCtrl+Shift+`
Copier 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
Questions frequentes
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