Is it possible to refactor the name of the files in a project and automatically update all the imports, without caring about breaking something each time a file name is changed?
In the same manner as in the JetBrains' products. You change the file name and everything is automatically updated.
Select Edit > Refactor > Rename. Right-click the code and select Rename.
Usage. Right-click folder/file. Click 'Rename Files' on the Context Menu that appears. Choose your settings and enter the text you wish to replace.
Actually you can. Natively on Visual Studio Code (>= v1.28) with import path renaming:
Or with some extension like Move TS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With