Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

543
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda