I want reload window using shortcut key, it is already defined to ctrl + R
but dont know how can i reload window using shortcut key.
Can you explain how can i in isDevelopment state?
thanks
I want reload window using shortcut key, it is already defined to ctrl + R
but dont know how can i reload window using shortcut key.
Can you explain how can i in isDevelopment state?
thanks
Like @scott-schupbach pointed out in the comment, we can guess from issue 81965 on github, that isDevelopment refers to the development tools of vscode. So Ctrl
+R
only reloads the window when the development tools are active. This question clarifies the use of the development tools.
So the only solution is to rebind the key or remove the isDevelopment
condition and rebind the default on Ctrl
+R
: open recent file.
What I like to do is to press F1
or Ctrl
+Shift
+P
and type in reload window
.
Not exactly sure what you are asking, but if I try
{
"key": "alt+m",
"command": "workbench.action.reloadWindow",
// "when": "isDevelopment"
},
that works to reload vscode. If I try to use the when
clause, nothing happens - so leave it out if you want to rebind the command. If you also want to unbind the default, use
{
"key": "ctrl+r",
"command": "-workbench.action.reloadWindow",
"when": "isDevelopment"
},