'Visual Studio Code follow link (Ctrl + click) opens it in the editor instead of opening it in the browser

When a file opened in Visual Studio Code, it contains a link, and it is possible to follow the link with Ctrl + click.

Usually the link is opened with the default browser, but for the past few weeks the link have been downloaded and displayed in Visual Studio Code.

Is there a way to get the default behavior back?

I use Visual Studio Code on Kubuntu.



Solution 1:[1]

This alternative way helped me:)

Go to Google Chrome ? Settings ? Default browser ? Set Google Chrome as default browser.

Solution 2:[2]

The action needed to fix this will vary based on file type that has the link.

For Markdown files try the following:

In Visual Studio Code: menu File ? Preferences ? Settings ? search for 'link' ? under Extensions, find Markdown ? under "Markdown, Links:Open Location", select the gear icon and click "Reset Settings".

If not Markdown, explore other categories and find similar settings based on the installed extensions.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Peter Mortensen
Solution 2 Peter Mortensen