SwitchHosts is a tool designed for efficient management of the hosts file, enabling users to switch between different configurations quickly and easily. The application provides a modern interface built with Electron, React, and other libraries, making it both powerful and user-friendly.
Key features include syntax highlighting for improved readability, remote hosts support for managing configurations across devices, and the ability to switch profiles directly from the system tray. Additionally, SwitchHosts allows users to backup their data and supports integration with winget for installation via package managers.
Ideal for developers, IT administrators, and anyone who needs quick access to host file management, SwitchHosts simplifies a traditionally cumbersome task. By offering real-time syntax validation and an intuitive interface, it helps reduce errors and streamline workflows, ensuring users can focus on their work without unnecessary interruptions.
SwitchHosts stores data at ~/.SwitchHosts (Or folder .SwitchHosts under the current user's home
path on Windows), the ~/.SwitchHosts/data folder contains data, while the ~/.SwitchHosts/config
folder contains various configuration information.
This command may take several minutes to finish when you run it the first time, as it needs time
to download dependent files. You can download the dependencies
manually here,
or Taobao mirror, then save the files to ~/.electron
. You can check the Electron Docs for more infomation.
# build
npm run build
# make
npm run make # the packed files will be in ./dist
Copyright
SwitchHosts is a free and open source software, it is released under the Apache License.