What does F2 do?
In Windows 11, F2 means: Rename the selected file or folder.
Last verified: Not yet independently verified
Where this shortcut applies
| App | Platform | What it does |
|---|---|---|
| Windows 11 | Windows | Rename the selected file or folder Verification pending |
| Ubuntu Linux 24.04 LTS | Linux | Rename the selected file or folder Verification pending |
| Ubuntu Linux 24.04 LTS | Linux | Rename the selected file or folder Verification pending |
| Windows 10 | Windows | Rename the selected file or folder Verification pending |
| VS Code | Platform not independently verified | Rename a variable or function across all files Verification pending |
| Google Sheets | Platform not independently verified | Enter edit mode for the selected cell Verification pending |
| Adobe After Effects | Platform not independently verified | Deselect all layers Verification pending |
| IntelliJ IDEA | Platform not independently verified | Jump to the next error or warning in the file Verification pending |
| Obsidian | Platform not independently verified | Open the file rename UI for the active note Verification pending |
| Notepad++ | Platform not independently verified | Jump to the next bookmarked line Verification pending |
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 independently verified, open the linked application reference and check its documented context before relying on it.