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

151
Views
How to rename/refactor variable in VSCode without getting alias `oldName as newName`

VSCode has an option to change/rename variables called editor.action.rename, usually bound to F2.

However, in Typescript and Javascript, this uses aliases when renaming an imported variable, eg:

import { originalName } from 'my-package'

results in

import { originalName as newName } from 'my-package'

How to prevent this, and propagate the change to all references?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It is possible to prevent renaming using aliases:

  • open your settings file (JSON): CMD+SHIFT+P and select Preferences: Open Settings (JSON)
  • add the following lines
    "javascript.preferences.useAliasesForRenames": false,
    "typescript.preferences.useAliasesForRenames": false,
    
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!