Not working open with chrome on windows Sublime Text 3
Closed this issue · 9 comments
Hello,
I have sublime Text 3 and I can't edit the Browser.sublime-settings file. I set chrome as my default browser, but as I couldn't change "%Local AppData%" to my actual route "C:\Program Files (x86)" It isn't working.
How can I go through this?
Thanks in advance.
PS: It's working with the other browsers, and I'm using windows 8.1.
Are you editing your own user version of the View In Browser.sublime-settings file (described in https://github.com/adampresley/sublime-view-in-browser/wiki/Configuring-Browsers)? If so can you paste it in a comment here so I can look at it?
thanks @adampresley. My bad :/ I didn't know I had to copy the default [View In Browser.sublime-settings and paste them to the user [View In Browser.sublime-settings]. So I could overwrite the "%Local AppData%" to my real chrome file location.
Now It's working :) , I appreciate your help.
This is a really old post but for anyone trying to get this working, this is how I got around it. If u want to use chrome then you set up your user preferences file as mentioned above (changing the default path to chrome to be something like C:/Program Files (x86)/Google/Chrome/Application/chrome.exe and the selectedBrowser at the bottom to 'chrome').
In sublime under 'Preferences->PackageSettings->View in Browser->Settings-Default', change the bottom section from "browser": "firefox" to "browser": "chrome64"
Gwad i tried so many things and almost pulled out all the hair on my head but Yay! finally this worked for me... thanks mickeo4.
won't let me edit "Settings-Default", if I browser to the folder where it claims to be stored it's not there / right click > open containing folder takes to c:/.
to work, left it all as supplied then added this as the only contents of the settings-user:
{
"browser": "chrome64"
}
and it worked
Dangit.. Still not working for me.
I tried everything detailed here.
Made the following file in the Packages\User folder:
Edited everything related to Chrome so it will point at the right program location.. and I still can't get "Open in Browser" to work with it.
@captaininbox Thanks, that solution worked for me :)
{
"browser": "chrome64"
}
in "View In Browser.sublime-settings"-file.
- Ctrl + `
- I found the following error:
File "C:\Program Files (x86)\sublime\Data\Packages\View In Browser\ViewInBrowserCommand.py", line 137, in getWindowsUserShellFolders
return_dict[name] = value.encode("ascii")
UnicodeEncodeError: 'ascii' codec can't encode character '\xe1' in position 26: ordinal not in range(128)
- I opened the file ViewInBrowserCommand.py line 137, I changed:
value.encode("ascii")
forvalue.encode("utf-8")
It worked!
Using MAC
and I changed the default to firefox, safari, chrome, tried them all nothing happens, it doesn't open a browser any suggestions?