Hi, I,m wanting to open Live Server into Chrome Canary. Is this possible? Any tips? cheers
use liveServer.settings.AdvanceCustomBrowserCmdLine setting... You can specify full path of any browser.
Example:
liveServer.settings.AdvanceCustomBrowserCmdLine : "C:\Program Files\Firefox Developer Edition\firefox.exe --private-window"
Checkout the setting section: https://github.com/ritwickdey/vscode-live-server/blob/master/docs/settings.md
@Stonerea656 I'm closing this for now. If you have any questions feel free to tag me and i will reopen it.
Working example for Chrome Canary in private mode (strange thing, single quotes aren't accepted, and backslashes must be escaped):
"liveServer.settings.AdvanceCustomBrowserCmdLine": "C:\\Users\\USERNAME\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe --incognito"
Hi @maximelebreton, yes! because the settings file is .json file.
Thanks @ritwickdey, so can you specify it in your https://github.com/ritwickdey/vscode-live-server/issues/62#issuecomment-356560272 example, because it is confusing.
same confusion for the liveServer.settings.AdvanceCustomBrowserCmdLine example on https://github.com/ritwickdey/vscode-live-server/blob/master/docs/settings.md
It's not a big deal, but it avoids wasting time understanding why the example doesn't work :)
Most helpful comment
Working example for Chrome Canary in private mode (strange thing, single quotes aren't accepted, and backslashes must be escaped):
"liveServer.settings.AdvanceCustomBrowserCmdLine": "C:\\Users\\USERNAME\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe --incognito"