Skip to content

↑↓ moveEnter openEsc close

Toggle whole word in VS Code

VS Code 1.96 · 138 shortcuts · checked Nov 2026 · Source: Microsoft docs

In Visual Studio Code, press Cmd+Option+W (Mac), Alt+W (Windows, Linux). Works when: find widget open.

What else uses Option+Cmd+W? · What else uses Alt+W?

More VS Code shortcuts: search and replace

ActionMacWindowsLinux
FindCmdFCtrlFCtrlF
ReplaceOptionCmdFCtrlHCtrlH
Find nextEnterorCmdGEnterorF3EnterorF3
Find previousShiftEnterorShiftCmdGShiftEnterorShiftF3ShiftEnterorShiftF3
Select all occurrences of find matchOptionEnterAltEnterAltEnter
Toggle case-sensitiveOptionCmdCAltCAltC
Toggle regexOptionCmdRAltRAltR

All 138 VS Code shortcuts