If i Run the project, it will launch using Google Chrome normal mode. But how can i launch it using Google Chrome Incognito Mode ?
Enable “Allow in incognito” for each extension you'd like to use in Incognito mode. When you're done, close the “Extensions” tab and the setting will take effect immediately. You'll be able to use the extensions you enabled in Incognito mode, and they will still be active in non-private browsing mode as well.
It is very simple using visual studio 2015 / 2017 / 2019. You just need to add --incognito
as command line switch and name the browser something like Google Chrome - Incognito.
That you can do using Browse With.. option in visual Studio.
Step-1:
Step-2:
Note: You can do the same thing with Firefox and Internet Explorer. Here I'm adding Internet Explorer with the -private option.
For
Google Chrome : "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --incognito
Firefox : "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -private-window
Internet Explorer/Microsoft Edge : "C:\Program Files\Internet Explorer\iexplore.exe" -private
For Visual Studio 2017
Browse With...
Add...
Program
write the path to Google Chrome, eg. C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Arguments
write --incognito
Friendly name
write Google Chrome (Incognito)
(or whatever suits your needs)OK
Google Chrome (Incognito)
) and click Set as Default
Now when you click the play button next to IIS Express, Google Chrome starts in Incognito mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With