Shortcut
Visual Studio Code Rename Symbol Shortcut
The Visual Studio Code shortcut to rename symbol is F2 on Windows. It's the same on Mac.
Quick Answer
- Windows
- F2
- Mac
- F2
- Web
- Not confirmed yet
Visual Studio CodeShortcut
Rename Symbol
Renames a variable or function everywhere it is used.
How to rename symbol in Visual Studio Code
- Open Visual Studio Code and go to where you want to rename symbol.
- Press F2 on Windows or F2 on Mac.
Visual Studio Code Rename Symbol Shortcut for Windows
Press F2.
Visual Studio Code Rename Symbol Shortcut for Mac
Press F2.
Visual Studio Code Rename Symbol Shortcut for Visual Studio Code Web
We haven't confirmed a Visual Studio Code Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the Visual Studio Code rename symbol shortcut?
On Windows, press F2. On a Mac, press F2.
Is there a Mac shortcut to rename symbol in Visual Studio Code?
Yes: F2.
Does it work in Visual Studio Code for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify