Skip to content

Feature: Ctrl+Click on file paths to open file #108527

@Svish

Description

@Svish

VS Code currently has a very helpful feature where it allows you to Ctrl+Click on any web links anywhere (as far as I can see), whether that is in a markdown file, a java comment, or a typescript variable value. It would be very helpful if this feature was extended to also cover file paths!

E.g. the following file (a .betterer.results file), contains file paths to files currently containing typescript errors, and it would be very helpful if I could just Ctrl+Click on a one of those paths to navigate to it.

image

The highlighting could be a combination of an "is this a valid file path"-regular expression and if it is, check if the file exists (either absolutely, if it's an absolute path, or relative to the file or the project root). If all good, underline and allow Ctrl+Click, the same as for web links.

Metadata

Metadata

Assignees

Labels

*extension-candidateIssue identified as good extension implementation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions