How to restart VScode after editing extension's config?
Visual Studio-CodeKeyboard ShortcutsVisual Studio-Code Problem Overview
VScode notifies you when you open a config of an extension:
> remember to Restart VScode
But it says nothing about how. They use capital letter for the restart
word, so normally it should mean something if you emphasize an appellation. Is there some hidden restart button or a key shortcut?
How do I restart the IDE?
Visual Studio-Code Solutions
Solution 1 - Visual Studio-Code
Execute the workbench.action.reloadWindow
command.
There are some ways to do so:
-
Open the command palette (Ctrl + Shift + P) and execute the command:
>Reload Window
-
Define a keybinding for the command (for example CTRL+F5) in
keybindings.json
:[ { "key": "ctrl+f5", "command": "workbench.action.reloadWindow", "when": "editorTextFocus" }]
Solution 2 - Visual Studio-Code
-
Open the Command Palette
Ctrl + Shift + P
-
Then type:
Reload Window
Solution 3 - Visual Studio-Code
You can do the following
- Click on extensions
- Type
Reload
- Then install
It will add a reload button on your right hand at the bottom of the vs code.
Solution 4 - Visual Studio-Code
You can use this VSCode Extension called Reload
Solution 5 - Visual Studio-Code
Use Ctrl + Shift + P in Windows OR Hit F1 to Open Command Palette then type Reload Window
Solution 6 - Visual Studio-Code
Method1
VIEW->COMMAND PALETTE->RELOAD WINDOW
Method2
cntrl+Shift+p Then Type: Reload window (Method1 same but using shortcut)
Method3
cntrl+R
NB:if Method3 did'nt work try this approach https://stackoverflow.com/a/71046140/7706354
Solution 7 - Visual Studio-Code
How to bind Ctrl+Alt+R to Restart
File
> Preferences
> Keyboard Shortcuts
-or-
Ctrl+K,Ctrl+S
(Code
> Preferences
> Keyboard Shortcuts
-or-
⌘K,⌘S on macOS).
This opens the default Keyboard Shortcuts window :
"Default Keyboard Shortcuts"
Click on the icon in the upper right corner with tooltip
Open Keyboard Shortcuts (JSON)
that looks like:
"Click this icon to open user 'keybindings.json'"
This opens your keybindings.json
on a per-user level. Paste or type :
{"key": "ctrl+alt+r", "command": "workbench.action.reloadWindow"},
(Make sure your keybindings are surrounded with square brackets, []
.)
Why Ctrl+Alt+R and not Ctrl+R ?
There are two reasons I bind Restart VS Code to Ctrl+Alt+R.
- Ctrl+R already has two other bindings:
File: Open Recent... and
quickOpenNavigateNextInRecentFilesPicker
. - It's a blink to the Microsoft legacy of Ctrl+Alt+Del.
If you need more help, try:
https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-layouts
"If all else fails, Ctrl+Alt+Del"