gpt4 book ai didi

visual-studio-code - 在VSCode中的特定行打开文件

转载 作者:行者123 更新时间:2023-12-03 23:54:46 25 4
gpt4 key购买 nike

在本节中:https://code.visualstudio.com/docs/editor/codebasics#_additional-command-line-arguments

它指出您可以使用--goto在特定行打开文件。我使用AstroGrep编写grep代码,每次尝试使用--goto参数时,VsCode均无法打开。

我正在使用的示例参数失败:

Code.exe --goto C:\filepath\filename.txt:450:11


要么

Code.exe --goto "C:\file path\filename.txt":450:11


这个file:line:column语法有什么问题?还是这是vscode中的错误?

谢谢

最佳答案

似乎是几天前已解决的已知问题-请参见here

解决方法,直到下一个版本:


使用相对路径
使用VSCode的内部版本

关于visual-studio-code - 在VSCode中的特定行打开文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39453951/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com