Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 是否可以使用vscode:hyperlink在代码中打开文件或目录?_Visual Studio Code - Fatal编程技术网

Visual studio code 是否可以使用vscode:hyperlink在代码中打开文件或目录?

Visual studio code 是否可以使用vscode:hyperlink在代码中打开文件或目录?,visual-studio-code,Visual Studio Code,在Visual Studio代码中,您可以使用vscode:超链接来完成一些操作(即vscode:extension/ericadamski.carbon now sh)。有没有办法用它来打开一个目录 例如,我有我的~/Projects/Handbook目录,我想使用超链接在Boostnote页面上打开/编辑该目录 是的,这是可能的 打开项目(或目录) 打开一个文件 vscode://file/{full path to file} vscode://file/c:/myProject/pac

在Visual Studio代码中,您可以使用vscode:超链接来完成一些操作(即vscode:extension/ericadamski.carbon now sh)。有没有办法用它来打开一个目录

例如,我有我的
~/Projects/Handbook
目录,我想使用超链接在Boostnote页面上打开/编辑该目录

是的,这是可能的

打开项目(或目录)

打开一个文件

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

vscode://file/c:/myProject/package.json
将文件打开到行和列

vscode://file/{full path to file}:line:column

vscode://file/c:/myProject/package.json:5:10

更多详细信息:

您正在编写扩展吗?@MattBierner-no。我只想让它在我的本地设备上打开一个特定的目录
vscode://file/{full path to file}:line:column

vscode://file/c:/myProject/package.json:5:10