Reputation: 30795
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?
Upvotes: 310
Views: 377451
Reputation: 2627
On a Mac:
Open the Command Palette
CMD + shift + p
Then type
Reload Window
Then hit enter.
Upvotes: 10
Reputation: 789
On Windows/Linux:
Open the Command Palette
Ctrl + Shift + P
Then type:
Reload Window
Upvotes: 69
Reputation: 45213
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
:
[
// other key bindings ...
{
"key": "ctrl+f5",
"command": "workbench.action.reloadWindow",
"when": "editorTextFocus"
}
]
Upvotes: 526
Reputation: 149
Use Ctrl + Shift + P in Windows OR
Hit F1 to Open Command Palette then type Reload Window
Upvotes: 9
Reputation: 19
For a more comprehensive restart, use File → Exit
.
Indeed, Google search seems to insist that this post also answers: How to restart VSCode so that changes to $path
are reflected? Unfortunately, the suggested reloadWindow
function does not update changes to $path
.
The answer is to use the menu item File → Exit
— a hot exit. Then restart VScode.
Upvotes: 1
Reputation: 477
Cmd+Shift+P Developer: Restart Extension Host
It is easier now, and maybe more granular than "restart window".
Upvotes: 2
Reputation: 67
To make reload window shortcut works:
Ctrl + Shift + p
and open command palletkeyboard shortcuts (JSON)
and press enterkeybindings.json
file:
- On the
key
field pass the shortcut- On the
command
field pass workbench.action.reloadWindow- On
when
field pass a empty string to this shortcut work without an specific condition
[
{
"key": "ctrl+f5",
"command": "workbench.action.reloadWindow",
"when": ""
}
]
Upvotes: 3
Reputation: 5767
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 :
Click on the icon in the upper right corner with tooltip
Open Keyboard Shortcuts (JSON)
that looks like:
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, []
.)
There are two reasons I bind Restart VS Code to Ctrl+Alt+R.
quickOpenNavigateNextInRecentFilesPicker
.If you need more help, try:
https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-layouts
Upvotes: 5
Reputation: 7353
VIEW->COMMAND PALETTE->RELOAD WINDOW
cntrl+Shift+p Then Type: Reload window (Method1 same but using shortcut)
cntrl+R
NB:if Method3 did'nt work try this approach https://stackoverflow.com/a/71046140/7706354
Upvotes: 1
Reputation: 341
You can do the following
Reload
It will add a reload button on your right hand at the bottom of the vs code.
Upvotes: 22