angular / vscode-ng-language-service

Angular extension for Visual Studio Code
MIT License
781 stars 117 forks source link

Rename files support #815

Open dgp1130 opened 4 years ago

dgp1130 commented 4 years ago

Is your feature request related to a problem? Please describe.

There are a few problems to consider:

Describe the solution you'd like

The Angular language service could plug in to the "rename file" operation to handle all three use cases.

Describe alternatives you've considered

Alternative is to basically do this all manually. There are some scripts and custom schematics suggested in https://github.com/angular/angular-cli/issues/900, but the language service can be a lot smarter than the CLI here.

Additional context

Spin off from https://github.com/angular/angular-cli/issues/900.

Danebrouwer97 commented 3 years ago

I see that the Angular CLI discussion has been closed as responsibility has shifted here. Just wanted to follow up and find out if there's been any movement on this feature request?

varthc commented 3 years ago

This would be a cool feature. I read the previous issue in the angular cli project and I agree, it is super annoying to rename the files manually. I hope this is considered in the near future!

tomwhite007 commented 2 years ago

In the meantime, here is an alternative solution:

I've created an Extension for VS Code to do all of these steps for you. It's called Rename Angular Component.

I have hopes of porting it to WebStorm and a Schematic later.

Previously, it took at least three semi-automated steps in VS Code as a minimum. This Extension does all of them.

I realise this is promoting my own solution. But it is free, open source, and a complete answer. If it doesn't do everything you're looking for, you can post issues on the repo, and it will be improved.