A VS Code extension that enables navigation to alias path definitions with Ctrl+Click. Perfect for projects using path aliases like @/components/Button.
- Alias Path Navigation: Jump to files using path aliases (e.g.,
@/components/Button) - Resolved Path Hover: Hover an alias or relative path to see the resolved file path
- Relative Path Support: Also works with
./and../relative paths - Multi-language Support: Works with Vue, JavaScript, TypeScript, JSX, TSX, CSS, SCSS, Less, Svelte, and uni-app (
.nvue,.uvue) - Automatic Config Detection: Reads aliases from VS Code settings, Vite, Webpack,
tsconfig.json, andjsconfig.json - tsconfig/jsconfig Extends Support: Reads aliases inherited from extended config files
- Auto Suffix Resolution: Automatically resolves file extensions (
.js,.vue,.ts,.css,.scss,.less,.nvue,.uvue, etc.) - Nested Project Root Detection: Finds the closest configured root marker, useful for monorepos
- Performance Optimized: Caches resolved project configs for faster navigation
- Use aliases in VS Code settings, Vite, Webpack,
tsconfig.json, orjsconfig.json - Hold
Ctrl(orCmdon macOS) and click on an alias path - The editor will navigate to the target file
- Hover the same path to inspect the resolved absolute file path
// With alias configured as { "@": "src" }
import Button from '@/components/Button' // Ctrl+Click to navigate
import { utils } from '@/utils' // Ctrl+Click to navigate.logo {
background-image: url(@/assets/logo);
}This extension contributes the following settings:
| Setting | Type | Default | Description |
|---|---|---|---|
alias-jump-pro.mappings |
object | { "@": "/src" } |
Path mappings. Key is the alias, value is the path relative to project root. |
alias-jump-pro.rootpath |
string | "package.json" |
File name used to find the closest project root from the current file. |
alias-jump-pro.allowedsuffix |
array | ["js", "vue", "jsx", "ts", "tsx", "svelte", "css", "scss", "less", "nvue", "uvue"] |
File extensions used when resolving paths without an extension. |
Add to your settings.json:
{
"alias-jump-pro.mappings": {
"@": "src",
"@components": "src/components",
"@utils": "src/utils",
"@assets": "src/assets"
},
"alias-jump-pro.allowedsuffix": ["js", "vue", "jsx", "ts", "tsx", "svelte", "css", "scss", "less", "nvue", "uvue"]
}Alias Jump uses the following priority order:
- VS Code setting
alias-jump-pro.mappings - Vite
resolve.alias - Webpack
resolve.alias tsconfig.json/jsconfig.jsoncompilerOptions.paths, including localextendschains- Fallback
{ "@": "src" }
uni-app: The extension automatically detects uni-app projects by
pages.json. For HBuilderX and Vue CLI created projects (which have built-in@→src), the fallback mapping takes effect automatically. For Vite created projects, the extension readsresolve.aliasfromvite.config.tsif configured; otherwise falls back to{ "@": "src" }..nvueand.uvuefiles are fully supported.
| Command | Description |
|---|---|
Alias Jump: Reload Configuration |
Clear cache and reload configuration |
- Vue (
.vue) - JavaScript (
.js) - TypeScript (
.ts) - JSX (
.jsx) - TSX (
.tsx) - CSS (
.css) - SCSS (
.scss) - Less (
.less) - Svelte (
.svelte) - uni-app (
.nvue,.uvue)
MIT