Since TypeScript 3.4 a setting has been implemented into tsserver that makes refactoring > rename create an alias in the local scope insted of change the original name
this abomination was enabled by default on VScode and after months of pain I found a way to disable it.
🎉🎉🎉🎉🎉🎉🎉
The configuration is called typescript.preferences.renameShorthandProperties


Top comments (10)
Please note that you should turn both JS and TS options to false in case you edit JS code and do not want the weird thing to happen again.
Dang, I've always been so annoyed since this feature was added! This option should be
falseas default. Thank you so much man 👍Hello,
I didn't know that and I renamed a class and VScode created an alias, but I don't know how I can remove this alias manually now. Can someone knows how to do that ? where is this alias defined ?
THANK YOU ugh
Thank you very much! Was looking for this - didn't know there was such a setting.
Thanks! Have been looking for this since it was changed.
Thank a lot, this is really annoying.
Heads up that
renameShorthandPropertieshas been deprecated; it's nowuseAliasesForRenames.Thanks!
Thanks you man.