Windows Considerations - adampresley/sublime-view-in-browser GitHub Wiki
Browser Configuration
One of the things you may notice in the Windows configuration for Google Chrome ("chrome") is a variable in the command path that looks like: %Local AppData%. This is a reference to your Windows installation's AppData folder in your user profile directory. There is a variable there because this value will differ for each user on your computer, and Chrome installs to your AppData folder.
Here is a list of supported variables:
- AppData - Your main application data folder for your profile (usually roaming)
- Personal - Your documents location
- Desktop - The path to your Desktop location (may be unreliable)
- Start Menu - The path to your Start Menu items location
- Local AppData - Your local application data folder for your profile
- My Video - Path to your videos location
- My Pictures - Path to your pictures location
- My Music - Path to your music location
Note that many of these are not terribly useful for determining browser location, unless you have decided to install Firefox in your My Music folder.
See Configuring Browsers for more information.
Local Server Configuration
When configuring a project on Windows you may see paths in your project that look like this.
{
"folders":
[
{
"path": "/c/Users/awesomeBob/code/python/my-cool-website"
}
]
}
Notice on Windows how the path as defined by Sublime Text for your project is using a Linux-style syntax. This does not work in the View In Browser settings, and is a source of common confusion. Use Windows-style paths when working in Windows. When adding local server information to your project configuration it should look more like this.
{
"folders":
[
{
"path": "/c/Users/awesomeBob/code/python/my-cool-website"
}
],
"settings": {
"sublime-view-in-browser": {
"baseUrl": "http://localhost:8080",
"basePath": "C:\\home\\awesomeBob\\code\\python\\my-cool-website"
}
}
}
See Viewing on a Local Server for more information on configuring local servers by project.