How to restart VScode after editing extension's config?

Visual Studio-CodeKeyboard Shortcuts

Visual Studio-Code Problem Overview


VScode notifies you when you open a config of an extension:

> remember to Restart VScode

enter image description here

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:

  1. Open the command palette (Ctrl + Shift + P) and execute the command:

    >Reload Window    
    
  2. 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

  1. Open the Command Palette

    Ctrl + Shift + P

  2. Then type:

    Reload Window
    

Solution 3 - Visual Studio-Code

You can do the following

  1. Click on extensions
  2. Type Reload
  3. 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

Marketplace > 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

enter image description here

Method2

cntrl+Shift+p Then Type: Reload window (Method1 same but using shortcut)

enter image description here Method3

cntrl+R

enter image description here

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

"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'

"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

"If all else fails, Ctrl+Alt+Del"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGreenView Question on Stackoverflow
Solution 1 - Visual Studio-CodeWosiView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeBogdanView Answer on Stackoverflow
Solution 3 - Visual Studio-CodeBonnie NyamburaView Answer on Stackoverflow
Solution 4 - Visual Studio-CodeflyingspacecatView Answer on Stackoverflow
Solution 5 - Visual Studio-CodeYash JadhavView Answer on Stackoverflow
Solution 6 - Visual Studio-CodelavaView Answer on Stackoverflow
Solution 7 - Visual Studio-CodeHenkeView Answer on Stackoverflow