Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Alias Jump - Smart Path NavigationNew to Visual Studio Code? Get it now.
Alias Jump - Smart Path Navigation

Alias Jump - Smart Path Navigation

simonhe

|
252 installs
| (1) | Free
| Sponsor
🚀 Smart path alias resolution and navigation. Supports tsconfig/jsconfig paths, monorepo, hot-reload, multiple formats (import/require/CSS url). Perfect for Vue, React, TypeScript projects!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-alias-jump

🚀 Smart Path Alias Navigation for VS Code

Version Downloads Rating License

English | įŽ€äŊ“中文

✨ Features

vscode-alias-jump is a powerful VS Code extension that provides intelligent path alias resolution and navigation. Say goodbye to broken Cmd+Click navigation when using path aliases like @/components/Button!

🎯 Core Capabilities

  • 🔍 Smart Alias Resolution - Automatically resolves path aliases from tsconfig.json / jsconfig.json
  • âšĄī¸ Multi-Format Support - Works with import, require(), import(), HTML src, and CSS url()
  • 🔄 Hot Reload - Auto-refreshes when config files change (no restart needed!)
  • 📦 Monorepo Ready - Per-document alias resolution for complex workspace structures
  • 🎨 Multi-Language - Supports Vue, React, TypeScript, JavaScript, CSS, SCSS, Less
  • 💾 Smart Caching - Intelligent cache invalidation for optimal performance
  • 🔗 Multiple Paths - Detects and resolves multiple import paths in a single line
  • 🎯 Precise Navigation - Click exactly on the path you want to navigate to
  • âšĄī¸ Async I/O - Non-blocking file resolution for smooth editing experience

🆚 Why Choose This Over Others?

Unlike other alias extensions that only work at the root level, vscode-alias-jump:

  • ✅ Resolves aliases per-document (perfect for monorepos)
  • ✅ Supports tsconfig references and project references
  • ✅ Handles multiple alias candidates with priority order
  • ✅ Auto-detects and strips query strings (?raw) and hash fragments
  • ✅ Uses async I/O to avoid blocking the editor
  • ✅ Provides retry mechanism for reliability

📦 Installation

  1. Open VS Code
  2. Press Ctrl+P / Cmd+P
  3. Type ext install simonhe.vscode-alias-jump
  4. Press Enter

Or search for "vscode-alias-jump" in the Extensions view.

🚀 Quick Start

1. Configure Your Project

Add path aliases to your tsconfig.json or jsconfig.json:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"],
      "~/*": ["src/*"],
      "#components/*": ["src/components/*"],
      "#utils/*": ["src/utils/*"]
    }
  }
}

2. Start Using!

The extension works automatically once activated. Just Cmd+Click (macOS) or Ctrl+Click (Windows/Linux) on any aliased import:

// ✅ All of these work!
import Button from '@/components/Button'
import { helper } from '~/utils/helper'
const Icon = () => import('#components/Icon')
require('@/config/constants')

// ✅ CSS/SCSS too!
@import '@/styles/variables.scss';
background: url('~/assets/logo.png');

// ✅ HTML/Vue templates
<img src="@/assets/image.png" />

īŋŊ Supported File Types

Language Extension Support
Vue .vue ✅
TypeScript .ts ✅
JavaScript .js ✅
React (JSX) .jsx ✅
React (TSX) .tsx ✅
CSS .css ✅
SCSS .scss ✅
Less .less ✅

🔥 Advanced Features

Multiple Alias Candidates

If your paths config has multiple candidates, the extension will try them in order:

{
  "compilerOptions": {
    "paths": {
      "@/*": ["src/*", "lib/*", "packages/*/src/*"]
    }
  }
}

TypeScript Project References

The extension automatically follows tsconfig references:

{
  "references": [
    { "path": "./packages/core" },
    { "path": "./packages/utils" }
  ]
}

Monorepo Support

Each file uses its nearest tsconfig.json / jsconfig.json, making it perfect for monorepos with multiple packages!

Auto-Reload on Config Changes

When you update tsconfig.json or jsconfig.json, the extension automatically:

  • 🔄 Invalidates cached aliases
  • 📝 Reloads the configuration
  • 🧹 Clears outdated navigation cache

No manual restart required!

âš™ī¸ How It Works

  1. Discovery - Finds the nearest tsconfig.json / jsconfig.json for each file
  2. Parsing - Extracts compilerOptions.paths and merges from references
  3. Resolution - Resolves aliases with support for multiple candidates
  4. Navigation - Provides Cmd+Click links and F12 "Go to Definition"
  5. Caching - Intelligently caches results with document-level granularity

🐛 Troubleshooting

Aliases not working?

  1. ✅ Check that you have a tsconfig.json or jsconfig.json in your workspace
  2. ✅ Verify the paths configuration is correct
  3. ✅ Make sure the target files exist
  4. ✅ Try reloading VS Code window (Cmd+R / Ctrl+R)

Navigation goes to wrong file?

  • Check if you have multiple alias candidates - the first match wins
  • Verify your baseUrl is set correctly in the config

🤝 Contributing

Issues and pull requests are welcome!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feat/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

🌱 Inspiration

This project is inspired by alias-skip and enhanced with many powerful features for modern development workflows.

💖 Sponsor

If this extension helps you, consider buying me a coffee! ☕

â¤ī¸ Sponsor on GitHub

📄 License

MIT Š 2024 Simon He


Made with â¤ī¸ by Simon He

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
Š 2025 Microsoft