microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.02k stars 28.79k forks source link

Set default browser for VSCode application #96132

Closed 1oglop1 closed 2 months ago

1oglop1 commented 4 years ago

Hi, I'm using multiple browsers / profiles and I would like to be able to set the default web browser per application or workspace.

The solution could be similar to what VisualStudio have which gives a user drop down menu to chose the browser. Ideally there should be an option in settings to select a default browser for all actions which require VSCode to open the web browser.

Example of current problems: If I want to log in into a LiveShare extension it opens my default browser (chrome) where my microsoft profile is different then the one I want to use to sign in for sharing the code.

This is very irritating because the microsoft URLs often contains multiple redirects and who knows what so I cannot just copy the URL and sing in using a different browser with the correct profile.

Here is more evidence that this feature would be appreciated by more people. https://stackoverflow.com/questions/47519768/how-do-i-set-the-default-browser-as-chrome-in-visual-studio-code/47520320

cobr31 commented 3 years ago

Agree with 1oglop1: Feature request gets my vote too. Seriously detracts from an otherwise useful tool. Scratching my head to understand why it wasn't there to begin with.

gitowiec commented 3 years ago

When this feature will be relesased?

MuqadderIqbal commented 3 years ago

Do we have an update on when this option will become available?

diligent176 commented 3 years ago

I'm looking for this feature too, landed here...
I can set almost everything in VS Code, why not the default web browser? :-)

devchia254 commented 3 years ago

I am also waiting for this feature. Any update?

Yemzibossa commented 3 years ago

How I wish I can also change my default browser on VS Code... Mine is always opening UC Browser of which I want Google Chrome...

TenaciousDev commented 3 years ago

Looking forward to seeing this feature implemented as well.

AyoCodess commented 3 years ago

any update?

mamakawama commented 3 years ago

Watching this as well

henriqgoncalvs commented 3 years ago

Updates?

mailsanchu commented 3 years ago

Any updates

SulthanNK commented 3 years ago

Any updates about this feature?

zhongxiang117 commented 3 years ago

Any updates? It gets my vote too.

AKP2401 commented 3 years ago

Gets my vote too. 😄

krish-1010 commented 3 years ago

@vscode-triage-bot where

shad0wRoot commented 3 years ago

Gets my vote too. Please add this feature.

muhdamean commented 3 years ago

Here is what I find Go to Settings -> Extensions -> Live Server Config -> Custom Browser you can then choose your browser of choice

SulthanNK commented 3 years ago

Here is what I find Go to Settings -> Extensions -> Live Server Config -> Custom Browser you can then choose your browser of choice

Yes @muhdamean It works only using while using a live server extension. But, people who work using NodeJS or some other web-based projects need this feature. Because we can't choose the browser of our choice while the NodeJS server starts running.

ghost commented 3 years ago

Any updates? Please add this feature. It gets my vote too.

Soulzityr commented 3 years ago

Can we get an update as to when this feature is expected? This seems to be a commonly needed one.

diarybook commented 3 years ago

Gets my vote too. Please add this feature.

saulvg1 commented 3 years ago

Any updates on this? I know there was an update recently.

ThaDaVos commented 2 years ago

I would love to see this feature too

joeaddison commented 2 years ago

+1

jan-niestadt commented 2 years ago

+1

sahilrajput03 commented 2 years ago

Need this feature ASAP!!

TomaszGasior commented 2 years ago

@sahilrajput03 Please don't write this kind of comments. They don't help in resolving the issue but cause sending spam notifications to all people subscribed to the topic. Instead, just subcribe to get new information about the progress. Thank you.

smcenlly commented 2 years ago

I'd really like to see this feature. I assume that there needs to be some special processing in nativeHostMainService.ts?

https://github.com/microsoft/vscode/blob/b4d5b4ed69af953901051b1f049851b9dca3563e/src/vs/platform/native/electron-main/nativeHostMainService.ts#L449

I assume could check to see if file type is URL (http or https) and if so, open with a specific browser based on a new setting?

I'd be happy to contribute if someone from the VS Code team is happy with the approach.

srveit commented 2 years ago

+1

Arinze25 commented 2 years ago

+1

blakegearin commented 1 year ago

+1

nulevii commented 1 year ago

Any updates?

johndifelice commented 1 year ago

After all this it's closed and the links send you round in circles.

Cylecq commented 1 year ago

+1

dbanks12 commented 1 year ago

+1

TomaszGasior commented 1 year ago

Please stop writing "+1" or "any updates" comments like that — that's just spam. Don't write comment if you do not have any valuable information to add to the topic. Thank you.

atmosbear commented 1 year ago

Please stop writing "+1" or "any updates" comments like that — that's just spam. Don't write comment if you do not have any valuable information to add to the topic. Thank you.

+1

(Edit: no but seriously, I believe that bumps such as this show the importance of the topic. Otherwise open issues just sit for literal years.)

smcenlly commented 1 year ago

FYI to any Mac users following this thread, I found https://choosy.app, which allows me to configure default browser based on app. It's a paid app, but does the job well.

bathyscaaf commented 1 year ago

Just found this thread. I would like this ability as well, here is my use case:

I have 2 projects, both Vue based -- but one is Vue2 and the other is Vue3. Vue2 and Vue3 have different devtools extensions, so I have the Vue2 devtools installed on Firefox Dev Edition browser, and Vue3 devtools installed on Chrome.

My OS default, daily driver browser is Firefox with Noscript enabled -- not what I want to develop with.

The ability to set the default browser per project would be pretty handy.

TinyMito commented 1 year ago

Would love to see this as well, I'm using Firefox Developer Edition and every time React app launch, it loads into my other primary normal browser.

jons-pf commented 1 year ago

+1 Any update? Please implement this!

xardit commented 11 months ago

+1 still needing this

guidonaselli commented 10 months ago

+1 The browser I use for development (Firefox for developers) is different from my default browser

bpasero commented 10 months ago

How would this work as setting? Allow to configure the path to an executable and then we would just execute that path and append the URL as argument?

smcenlly commented 10 months ago

@bpasero - I think that sounds reasonable. I think (in addition) it would ideal if you could iterate the browsers in an OS specific way (e.g. for MacOS), but starting with a setting as you describe would work and I'm sure would satisfy the needs of this issue.

I assume you'd expose as a VS Code setting which means it could then be overridden at the workspace level?

bpasero commented 9 months ago

What is the use case for a workspace specific setting? I was thinking of a application global setting.

alexkuc commented 9 months ago

@smcenlly What's the advantage of enumerating apps in a specific way, like in the MacOS example linked?

smcenlly commented 9 months ago

@bpasero - for me personally, I prefer to use Safari, but when I'm doing front-end development, I use Chrome. So I would have a workspace override for my front-end projects only. Having said that, I think I mentioned above, I found another solution (https://choosy.app/), so I'm really only advocating for others in my reply.

@alexkuc - enumerating apps capable of launching websites (i.e. browsers) provides a nicer UX (vs. needing to find the path for your browser), that's all.

6XGate commented 9 months ago

Definitely need this. I use FF Dev Edition for work, and need anything from the AWS Plug-in in VSCode to open in that browser and not my OS default. The OS default is used for personal stuff. IntelliJ and its family (like WebStorm and PHPStorm) already support this.

viktor-berezin commented 8 months ago

+1