I'm finding it difficult just to do a simple function like right clicking and Refactoring in Android Studio to change a variable name everywhere, but on VS Code it gives some other options that are even greyed out.
Without going into too much, how do I just rename a variable everywhere in my code just like in Android Studio?
CodePudding user response:
Put the cursor within the variable and hit F2 (Windows) or fn-F2 (Mac). See https://code.visualstudio.com/docs/editor/refactoring