Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open file using vscode:// link

I want to use vscode ide link like phpstorm.

I know we can phpstorm://open?file=@filepath&line=@line

How can I achieve the same effect using vscode?

Thanks a lot.

like image 286
cobenash Avatar asked Sep 13 '25 04:09

cobenash


1 Answers

This link:

vscode://file/@file:@line

works.


Example: if you would like to open line 10 of /path/to/file.txt then the link will be:

vscode://file/path/to/file.txt:10
like image 90
cobenash Avatar answered Sep 14 '25 21:09

cobenash