Vscode-live-server: Opening into Chrome Canary

Created on 8 Jan 2018  路  5Comments  路  Source: ritwickdey/vscode-live-server

Hi, I,m wanting to open Live Server into Chrome Canary. Is this possible? Any tips? cheers

closed question

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"

All 5 comments

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.

  • JSON strings cannot be quoted with single quotes.
  • \\ is Backslash character for JSON

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 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manavm1990 picture manavm1990  路  5Comments

abhiinos111abhi picture abhiinos111abhi  路  5Comments

iAdesanyaDaniel picture iAdesanyaDaniel  路  3Comments

sfn101 picture sfn101  路  8Comments

maboumra picture maboumra  路  3Comments