vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Feature request: Add support for line and column numbers in the Go To File feature

Open digeff opened this issue 10 years ago • 5 comments

A lot of times I use the Go to File feature I'm copy pasting the file from another source (for example errors from TSLint or TypeScript) which in my case are of the format: src\test\folder\other_folder\my_file.ts(9,9)

If I could paste that directly into the Go to File field, and I'd take me first to the file and then to the line (and maybe slightly highlight the line or something so I focus on that line directly) it'd be very useful.

Given that the way to specify line and column is probably dependent on the source, you'd probably need to either have some smart logic, or provide some setting in the user settings where I can define a regexp to match my case like: [ { pattern: "((\d+),(\d+))$", lineAppearsFirst: true }]

digeff avatar Mar 24 '16 16:03 digeff

This is some nice coincidence, I noticed this today as well and fixed for post-GA release: https://github.com/Microsoft/vscode/issues/4643

bpasero avatar Mar 24 '16 16:03 bpasero

@bpasero: Great minds think alike :+1:

digeff avatar Mar 24 '16 16:03 digeff

@bpasero Test plan item?

aeschli avatar Apr 25 '16 13:04 aeschli

@aeschli assigned to Isidor as bug, don't think it needs a full test plan item.

bpasero avatar Apr 25 '16 13:04 bpasero

@bpasero ok

aeschli avatar Apr 25 '16 14:04 aeschli