Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vsc view in browserNew to Visual Studio Code? Get it now.
vsc view in browser

vsc view in browser

daichang

|
8,861 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vsc View In Browser

Extendsion for preview the opened html file in the default browser.

Usage

  1. Bring up command palette
  2. Type 'View In Browse' and select the item.

Configuration And Keybindings

example:

  1. Use the command palette to open the user setting, add the follows:
"daichangViewInBrowser.handle": "if(target.indexOf('/Users/chance/work/sina/')==0 && args){ target = target.replace('/Users/chance/work/sina/','http://dc.'+ args +'/'); }else{ target = 'file://'+target; options = { app: 'Google Chrome' }; }",
  1. Use the command palette to open the keybindings.json, add the follows:
{ "key": "f12",
    "command": "extension.daichangVscViewInBrowser", "args":"sina.com.cn"
},{ 
    "key": "alt+f12",
    "command": "extension.daichangVscViewInBrowser", "args":"sina.cn"
}

example1

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft