Renaming symbols
For a developer, it is very common to rename a variable, constant, field, or function name. These coding elements are technically called symbols. Visual Studio Code provides a very powerful feature to rename symbols.
If you press F2 on the coding element that you wish to rename, or right-click and then select Rename Symbol, a small interactive popup appears in edit mode. There, you can write the new element name without using a distracting dialog window, allowing you to concentrate on your coding. All references to that code element will be renamed accordingly. The following screenshot shows renaming the XMLport symbol reference:
All of the features shown so far are the most useful features provided by Visual Studio Code ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access