Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

538
Views
How to use 'go to path' with aliases in VScode

Using VScode I can go open a file that I am importing using CTRL + click into the import declaration:

Go to file using VScode CTRL + click

By doing that the VScode will open the file index.js at the folder ./code

I also can create and export alias to some files using vue.config.js:

Exporting alias for files using vue.config.js

Then I can import using the alias:

Importing using the alias

The problem I want to solve is: How can I CTRL + click and open a file that were imported using alias?

There are any extensions that can do it?

It would be very useful, because when I need to edit the file I could go directly to it without having to manually look for the path.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can configure the path aliases in VS Code with a jsconfig.json file (or tsconfig.json if using TypeScript).

Create <projectRoot>/jsconfig.json with the compilerOptions.paths option set to glob patterns that match the ones from Webpack's resolve.alias:

{
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@themeConfig": ["src/libs/themeConfig.js"],
      "@core/*": ["src/@core/*"],
      "@validations": ["src/@core/utils/validations/validations.js"],
      "@axios/*": ["src/libs/axios/*"]
    }
  }
}

screencast

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!