Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Support refreshing the page #91

Closed
paulirish opened this issue Sep 2, 2016 · 11 comments
Closed

Support refreshing the page #91

paulirish opened this issue Sep 2, 2016 · 11 comments

Comments

@paulirish
Copy link

The other day I really wanted to refresh my page after saving a change in VSCode. Can you make ctrl-R work?

(jam3/devtool does have ctrl-r hooked up to restart the node.js instance, too. I love it.)

@roblourens
Copy link
Member

Thanks for the suggestion, yes I would really like to support that, although it's not as straightforward as I'd like. Closest I can suggest at the moment is the Restart button, which is cmd+shift+f5. Not quite the same, it will restart the entire browser. It restarts the Node instance in Node debugging too. You could map this to ctrl+r like

{ "key": "ctrl+r", "command": "workbench.action.debug.restart",
    "when": "inDebugMode" }

@auchenberg
Copy link
Contributor

@roblourens What makes this feature complicated?

@roblourens
Copy link
Member

Just that a debug adapter can't customize the behavior of the restart button at the moment. We talked about this in the past month, and I filed this bug to discuss - microsoft/vscode#14189

@auchenberg
Copy link
Contributor

@roblourens This has landed right? Should we update the README with instructions on how to bind the shortcut?

@roblourens
Copy link
Member

Oh right, I had duplicate issues.

@auchenberg
Copy link
Contributor

@roblourens So mapping this will make the page refresh right?

{
   "key": "ctrl+r",
    "command": "workbench.action.debug.restart",
    "when": "inDebugMode"
}

@roblourens
Copy link
Member

Yes

@auchenberg
Copy link
Contributor

@nyakoojo
Copy link

nyakoojo commented Feb 2, 2017

why can't my visual studio code view my html tags and launch my browser.
Is there a way anyone help me MacOS X i will be grateful

@roblourens
Copy link
Member

Can you be more specific? What is the problem?

@nyakoojo
Copy link

nyakoojo commented Feb 3, 2017 via email

@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants