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

336
Visualizações
VSCode: How to navigate inside JS "require"?

I would like to be able to click on the filepath below to open the file that the path references.

const foo = require('services/api/bar')

Does VS Code offer "out-of-the-box" support for this feature? Or can support be gained from an extension?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Open File From Path


Edit:

Originally when I answered this, I thought VS Code didn't support this feature because it doesn't work for me. Turns out, it doesn't work for several people. I have changed my answer to explain how support can be gained for everyone.



OUT-OF-THE-BOX SUPPORT

V.S. Code offers support "out-of-the-box", however, it does not work for everyone. There are various reasons why people experience issues with the native vscode feature. The most common is because VS Code implements a keybinding that is unique to VS Code (example below):

CTRL+CLICK

The Mouse Keybinding can sometimes interfere with an Operating System, or with other software. If you are having an issue getting the default feature to work, not all is lost. Support can be gained through the extension that I have named below.

  • Extension's Name: Open File From Path
  • Extension's ID: "jack89ita.open-file-from-path"
The extension should work immediately after installation with no need to restart your instance of VS Code.


Instructions on Using the Extension:

After the extension is installed, use your mouse to click on the path you wish to navigate to. After you have clicked on the desired path you will use ALT+D to navigate to the path's file.

I personally prefer to alter the keybindings that the extension offers by default

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