在VSCode中,如何从命令行打开文件并找到指定的文本?

时间:2020-01-28 13:40:22

标签: visual-studio-code command-line editor

在Visual Studio代码中,
如何在命令行中打开文件
并指定一个搜索字符串来定位光标?
(即使VS Studio已打开(单例模式))

我想要类似的东西:

code.exe prog1.py prog2.py --find "def/s+Cryptor(.*?):"

最好使用正则表达式参数进行搜索,
但这也可以:

code.exe prog1.py prog2.py --find "def Cryptor("

0 个答案:

没有答案