Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Link in VSCode Will Create a New Web Browser Under Same Icon as VSCode

I am using VScode version 1.45 with Firefox version 76.0.1 as a default browser (with Ubuntu 18.04.4 LTS). Whenever I tried to open a link in the VSCode, it will open the Firefox browser under same icon as VSCode, and I cannot merge these tabs into existing Firefox web browser.

Same thing also happens when I try to run a program using live server extension. But when I use npm to start the development server, it will create a new window or tab under the Firefox icon.

How could I fix this so whenever I open a browser from VSCode, it will create a new browser or tab under the appropriate (Firefox) icon? Thank you.

like image 593
Tomo10 Avatar asked Jun 01 '20 17:06

Tomo10


2 Answers

There is already an issue on VSCode's GitHub repository and as it is mentioned in the issue, origin of the issue is in snapd.

To fix the issue, as mentioned on aforementioned github issue:

  1. Open some URL from the VSCode snap.
  2. In the new window, navigate to about:profiles.
  3. Ensure that the profile marked as "Default Profile" matches Firefox when opened normally. If not, use the "Set as default profile" button under the correct profile to change the default.

enter image description here

like image 56
Dipen Shah Avatar answered Nov 15 '22 10:11

Dipen Shah


Try making firefox your default browser thorugh firefox and also do check that firefox is your default browser from vscode

enter image description here

like image 42
Fareed Khan Avatar answered Nov 15 '22 09:11

Fareed Khan