vscode-goto-aliasGo to Definition following alias redirections. UsagesInstall this extension from the VS Code Marketplace. Set
MotivationFor example, in Nuxt 3 or Vitesse projects, we provide auto import for APIs and components. To provide types for these auto imports, the tools will generate a
With this declaration file, we could have type safety using
The only small downside is that when you use "Go to definition" in the code, the IDE will redirect you the the definition file we generated instead of the real definition source. So, this extension is built to solve this. With this extension installed, when the "Go to definition" command hits the definition file, it will then redirect again to the definition source. Working with Vue ComponentsIf you find trouble redirecting auto-registed components by Nuxt 3 or SponsorsLicenseMIT License © 2022 Anthony Fu |