Open your hosts
file quickly and have syntax highlighting for it.
- Simply hit
Ctrl+Shift+H
(on Windows and Linux) orโ+Shift+H
(on OS X) to bring up yourhosts
file - Or you can open it via
Command Palette
, hitCtrl+Shift+P
and chooseOpen Hosts File
To install this plugin, you have two options:
-
If you have Package Control installed, simply search for
HostsEdit
to install. -
Clone source code to Sublime Text packages folder.
This plugin has a three settings. If you create a file called SublimeHostsEdit.sublime-settings
in your User
package you can override them.
win_hosts_file_location
: location ofhosts
file under Windowsunix_hosts_file_location
: location ofhosts
file under Unixosx_hosts_file_location
: location ofhosts
file under OS X
{
//PATH to `hosts` file depending on system
"windows_hosts_file_location": "C:/Windows/System32/drivers/etc/hosts",
"linux_hosts_file_location": "/etc/hosts",
"osx_hosts_file_location": "/private/etc/hosts"
}