Skip to content

switch hosts for vs code extension.

Notifications You must be signed in to change notification settings

hizhuo/switch-hosts

 
 

Repository files navigation

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

About

switch hosts for vs code extension.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.9%
  • JavaScript 8.1%