Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>switch-hostsNew to Visual Studio Code? Get it now.

switch-hosts

yang yue

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

English | 简体中文

switch-hosts

Fast and convenience switch hosts file for vs code.

Features

switch system hosts for development.

  • Fast switching hosts based on multiple configurations.
  • Quickly open system hosts file.
  • Save update system default hosts. Features

Extension Settings

This extension contributes the following settings:

  • "switchHosts.config": {
      "config name": {
        "domain": "ip"
      }
    },
    
  • "switchHosts.selected": [
      "config name"
    ],
    

Known Issues

save system hosts file sudoCommand, should use environmentService.cliPath, but not find this.environmentService. see environmentService

fix it: launchEditor

Release Notes

1.0.0

Initial release of switch-hosts

2.0.0

Complete basic functions:

  • hosts config
  • hosts save
  • hosts selected

2.1.0

  • hosts update default hosts
  • add README features gif

2.2.0

  • Support VS code Insiders version
  • add open system hosts file:
    Ctrl + Shift + p> switch-hosts: openHostsFile
  • add saved hosts notification

Enjoy!😁

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft