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.

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!😁
| |