'Open a file in the default editor from the browser and navigate to the line number

If you have used create-react-app, you may have noticed that when an error occurs, this application displays a page with this very error from the console.

enter image description here

If you click on this error, the default editor will be opened and the cursor will move to the line where the error occurred.

How can I implement this feature?



Solution 1:[1]

you can open vscode using this url vscode://filepath

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 net-js