Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sublime text 2 view file in browser. It doesn't open. It just says that it is saved after pressing ctrl + alt + v

Tags:

sublimetext2

I got the plugin view in browser . because I didn't know how to view my html stuff in a browser via key strokes only and I did research on this site and you guys recommended using the plugin.

I think I followed the instructions carefully. I went to package control and installed the package. I see the view in browser folder in the package folder. but when I press alt + ctrl +v it just says that the document is saved. and the browser doesn't open. I would like it to open.

Please help me get the file open in the browser with just key strokes using sublime text 2. I have windows 7

like image 530
jack blank Avatar asked Feb 05 '13 02:02

jack blank


1 Answers

The plugin defaults to Firefox, which doesn't seem to work on Windows (I can't get it to open either, probably because the command is just firefox which is not in the PATH). To get it to open with Chrome, edit View In Browser.sublime-settings in the folder of the package. Change selectedBrowser to chrome and change the command filepath to where chrome is on your computer (probably just change the user name).

Alternatively, try pressing F12, which opens the current file in browser for me, but I'm not sure if it's from a plugin I've installed or not. I found this by pressing ctrl+shift+p and typing in "Browser". Searching like this often a good way to find functionality you suspect exists, but don't know what the exact command/shortcut is.

like image 79
bananafish Avatar answered Sep 17 '22 21:09

bananafish