如何使用 vscode://链接打开文件 [英] How to open file using vscode:// link

查看:84
本文介绍了如何使用 vscode://链接打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 phpstorm 之类的 vscode ide 链接.

I want to use vscode ide link like phpstorm.

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

如何使用 vscode 达到同样的效果?

How can I achieve the same effect using vscode?

非常感谢.

推荐答案

此链接:

vscode://file/@file:@line

有效.

示例:如果您想打开 /path/to/file.txt 的第 10 行,那么链接将是:

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

这篇关于如何使用 vscode://链接打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆