Visual studio code 如何使用vscode://link打开文件

Visual studio code 如何使用vscode://link打开文件,visual-studio-code,Visual Studio Code,我想使用vscode ide链接,比如phpstorm 我知道我们可以phpstorm://open?file=@filepath&line=@line 如何使用vscode实现相同的效果 非常感谢。此链接: vscode://file/@file:@line 工作 示例:如果要打开/path/to/file.txt的第10行,则链接将为: vscode://file/path/to/file.txt:10

我想使用vscode ide链接,比如phpstorm

我知道我们可以
phpstorm://open?file=@filepath&line=@line

如何使用vscode实现相同的效果

非常感谢。

此链接:

vscode://file/@file:@line
工作


示例:如果要打开
/path/to/file.txt
的第10行,则链接将为:

vscode://file/path/to/file.txt:10