VS Code: How to refactor(rename variable) in an Angular template file?

Viewed 4581

I want to rename a variable used across an angular template file (i.e. an xxx.component.html file). This could be done with Shift + F6 shortcut in WebStorm. How to do it in vscode? F2 doesn't help.

1 Answers

You need to use Ctrl + F2 combination to select the word and then type the new word , It will select all and replace with the new one

Ctrl + F2

Related