Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a file in vscode from browser?

I want my webapp to be able to open a given file in VS code. For example, when I click a button on my webapp, a file say, C:\Users\...\myProject\index.html is opened, if myProject is already opened it should navigate to index.html

I know its a peculiar use case but I want to know if its possible in vscode.

Its also completely fine if it requires using browser or vscode extension.

like image 615
dasfdsa Avatar asked Dec 24 '22 03:12

dasfdsa


1 Answers

vscode://file/{full path to project}/

Thanks to fbg13 for providing this link

like image 150
dasfdsa Avatar answered Apr 05 '23 09:04

dasfdsa