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

245
Views
How to ignore exports when going to definitions in vscode?

Consider this plain example:

//a.js
function world() { console.log("World world world"); }

module.exports = { world };
//b.js
const a = require('./a');
a.world();

When I ctrl+click / use the "Go to Definitions" command on world from file b, I'm told there are 2 definitions for world and I need to pick the one I wish to jump to. But one of those is the module.exports statement which really isn't interesting or useful at all to me.

Is there a way to ignore the module.exports definition of any/all symbols? So that "Go to definition" will go to the real definition automatically?

enter image description here

about 4 years ago · Juan Pablo Isaza
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!