In this section: https://code.visualstudio.com/docs/editor/codebasics#_additional-command-line-arguments
It states you can use --goto
to open a file at a specific line. I grep code with AstroGrep and every time I try to use the --goto
argument VsCode fails to open.
An example argument i'm using which fails:
Code.exe --goto C:\filepath\filename.txt:450:11
or
Code.exe --goto "C:\file path\filename.txt":450:11
What is wrong with this file:line:column syntax? or is this a bug in vscode?
Thanks
Seems to be a known issue which was fixed a couple of days ago - see here
Workaround until next version:
Code.exe --goto "C:\file path\filename.txt:450:11"
worked for me, take a closer look on the quotation marks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With