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

275
Views
When moving a JS file, how can you auto-update the imports of dependents of the moved file?

I know that VS code can auto-update the import statements of the moved file using updateImportsOnFileMove, but I'd like for VS code to update the dependents of the moved file as well. Is such a thing possible?

Example:

myfile.js exists in /src/, but I'd like to move it to /src/models/. If I do so, myfile.js will go from

import WhoCares from './whocares.js';

to

import WhoCares from '../whocares.js';  

However, I'd like for the dependents of myfile.js to also be updated, i.e. mydependent.js

import MyFile from './myfile.js';

to

import MyFile from './models/myfile.js';

Is such a thing possible?

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!