9

I'm a new user of vscode.

I ran into a problem that I was told would be resolved by "Reload Window". So I first went through the "Command Palette" to find it, and it did fix my problem. However, I noticed that it says it is bound to "Ctrl + R". So if that's the key sequence it's bound to, why does holding down Ctrl and pressing r not execute that function? It actually brings up the "Select to open" prompt, with the list of recent files as selection choices.

Henke
  • 4,445
  • 3
  • 31
  • 44
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
  • 1
    [This question](https://stackoverflow.com/q/59573038/5730568) could help you understand why the shortcut `Ctrl + R` doesn't work in some cases. – giusepped Nov 13 '21 at 09:08

2 Answers2

11

I just tested the sequence:

  • "Preferences: Open Key Shortcut" (through the command palette)
  • Filter on reload
  • right click and select "Change when expression"
  • delete the isdevelopment value, and type the "Enter" key

From there, Ctrl+R does indeed reload the VSCode window immediately.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    +1 This helped me too... I had manually entered the hyphen `-`, but pressing `Enter` on an empty input is something else that looks like ` -` (space+hyphen), but must store something else. – n1k31t4 Dec 29 '21 at 18:05
5

Step

1.VIEW->COMMAND PALETTE->RELOAD WINDOW or cntrl+Shift+p

  1. Click the setting icon

List item

  1. Right Button -> change when expression->clear all the text or command and press enter

List item

  1. Now Test the code cntrl+R

Total Result Live(Gif):

enter image description here

Warning.
Sometimes ctrl+R already has many bindings. Consider changing the key binding of "Reload Window". Or change the key bindings of those other commands.

Henke
  • 4,445
  • 3
  • 31
  • 44
lava
  • 6,020
  • 2
  • 31
  • 28
  • _Consider changing the key binding of "Reload Window"._ [Here is an example of doing that](https://stackoverflow.com/a/71439490). – Henke Apr 22 '22 at 08:32