Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Custom Navigation for TypesNew to Visual Studio Code? Get it now.
Custom Navigation for Types

Custom Navigation for Types

The Brainery

|
14 installs
| (0) | Free
Have custom paths for navigation in your typescript type files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

typescript-file-navigation README

Navigate to source files vs. to the definition file with CMD+Click

How to use

  1. In your type definition add a comment like so above the attribute / type that you want to redirect.
    // File://../original/file.ts:<LINE_NUMBER>

ex.

interface db {
    // File://../original/db.ts:5
	user?: Partial<Model>;
	[key: string]: any;
}

interface Model {
  [key: string]: any;
}

export { db, Model };

  1. Now when you CMD + Click it will navigate to the source file / line number
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft