-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBrowserIntegration.sublime-settings
52 lines (52 loc) · 2.12 KB
/
BrowserIntegration.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
// The default location to open when firing up the browser.
"startup_location": "localhost:8000",
// Whether to maximize the browser window on startup.
"maximize_on_startup": false,
// If `maximize_on_startup` is false, the browser window will
// be moved to this position on startup ([x, y]).
"window_position": [0, 0],
// If `maximize_on_startup` is false, the browser window will
// be set to this size on startup ([width, height]).
// Useful if you want to open ST3 and the browser alongside
// in the same monitor.
"window_size": [480, 780],
// This style will be applied to the `outline` property
// of selected items (Select with CSS or XPath command).
"highlight_outline": "2px solid red",
// This section defines a mapping of hrefs to static files.
// It is used by some commands (view CSS and live CSS editing)
// to try to automagically find your local static files that
// match browser URLs and open those instead of
// directly downloading the link href.
"static_files_mapping": [
// Django-style matches.
// Links like `http://localhost:8000/static/path/to/style.css`
// will match all your internal projects `/static/` dirs,
// but **not** the external `static/` folder where Django
// collects static files.
{
"selector": "^http[s]?://localhost:\\d+/static/(.*)\\.css$",
"matches": [
"^(.+)/static/\\1.css$"
]
},
// Exact matches.
// Links like `http://localhost:8000/path/to/style.css` will
// match exactly those file paths in your project folders.
{
"selector": "^http[s]?://localhost:\\d+/(.*)\\.css$",
"matches": [
"^\\1.css$"
]
}
],
// Set to true to automatically reload on save.
"reload_on_save": true,
// Files matched by these selectors cause the browser to reload on save.
"reload_on_save_selectors": [
"^.*\\.html$", // HTML files
"^.*\\.js$", // JavaScript source files
"^.*\\.css$" // CSS files
]
}