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

DEMO

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}

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

Post a Comment (0)
Previous Post Next Post