What does F2 do?
In Windows 11, F2 means: Rename the selected file or folder.
Where this shortcut applies
| App | Platform | What it does |
|---|---|---|
| Windows 11 | Windows | Rename the selected file or folder |
| Ubuntu Linux 24.04 LTS | Linux | Rename the selected file or folder |
| Ubuntu Linux 24.04 LTS | Linux | Rename the selected file or folder |
| Windows 10 | Windows | Rename the selected file or folder |
| VS Code | App context | Rename a variable or function across all files |
| Google Sheets | App context | Enter edit mode for the selected cell |
| Adobe After Effects | App context | Deselect all layers |
| IntelliJ IDEA | App context | Jump to the next error or warning in the file |
| Obsidian | App context | Open the file rename UI for the active note |
| Notepad++ | App context | Jump to the next bookmarked line |
Full shortcut pages
Frequently asked questions
- What does F2 do?
- In Windows 11, F2 means: Rename the selected file or folder.
- Does this shortcut work the same way in every app?
- No. The listed contexts include Windows 11, Ubuntu Linux 24.04 LTS, Windows 10, VS Code, Google Sheets, Adobe After Effects, IntelliJ IDEA, Obsidian, Notepad++. Check the table for each application and platform: the active window, keyboard layout and application settings determine which command receives the key press. An application being available on an operating system is not evidence that this exact binding works there.
- What should I use on a Mac?
- Use a macOS binding shown in the table, if one is recorded for your task and application. This page does not assume that replacing Ctrl with Cmd produces a working Mac shortcut. When an equivalent has not been documented, open the linked application reference and check its documented context before relying on it.