Vscode rename all instances of a variable


Visual studio code is a trendy free code editor from Microsoft. Visual Studio supports many productive features like auto import, syntax colouring, and many extensions for making developer life more comfortable.

In this article, I will share one handy tip for renaming all the variables in vs code.

  1. Highlight the variable in Visual Studio Code as shown below
    How to rename variable in Visual Studio Code

  2. Press F2 and type the new variable name and then enter


How to rename variable in Visual Studio Code

This technique is not bound to any specific language. VSCode allow this feature to all langyages like C#,Python,Java,Javascript and many more.{alertInfo}


Post a Comment


Please do not post any spam link in the comment box😊

Post a Comment (0)