What does F2 do?

In Windows 11, F2 means: Rename the selected file or folder.

Where this shortcut applies

What does F2 do?
AppPlatformWhat it does
Windows 11WindowsRename the selected file or folder
Ubuntu Linux 24.04 LTSLinuxRename the selected file or folder
Ubuntu Linux 24.04 LTSLinuxRename the selected file or folder
Windows 10WindowsRename the selected file or folder
VS CodeApp contextRename a variable or function across all files
Google SheetsApp contextEnter edit mode for the selected cell
Adobe After EffectsApp contextDeselect all layers
IntelliJ IDEAApp contextJump to the next error or warning in the file
ObsidianApp contextOpen the file rename UI for the active note
Notepad++App contextJump 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.