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

334
Views
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 answers
Answer question

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 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!