Sublime Forum

Key bindings for view in browser isn't working?

#1

So I’ve been trying two different methods to have sublime open up in different browsers. First Is the one originally used back when I first got sublime and wanted chrome as my default browser. I downloaded the view in browser package. Went to prefrences > package settings > view in browser > settings-user > then pasted this in

{ 
"keys": [ "ctrl+alt+c" ], "command": "view_in_browser", "args": { "browser": "chrome" } 
}

This worked then, but I can delete this and chrome will still open up? I also can change the ‘c’ & ‘chrome’ to ‘f’ and ‘firefox’ but that doesn’t work? I then found an article that told me to go prefrences > key bindings > and paste this in

[

 { "keys": [ "ctrl+alt+v" ], "command": "view_in_browser" },
 { "keys": [ "ctrl+alt+f" ], "command": "view_in_browser", "args": { "browser": "firefox" } },
 { "keys": [ "ctrl+alt+c" ], "command": "view_in_browser", "args": { "browser": "chrome" } },
 { "keys": [ "ctrl+alt+i" ], "command": "view_in_browser", "args": { "browser": "iexplore" } },
 { "keys": [ "ctrl+alt+s" ], "command": "view_in_browser", "args": { "browser": "safari" } }

]

This didn’t work either?

0 Likes

#2
0 Likes