Toggle regex: the shortcut in both apps
Each app binds this differently. The table shows the keys in Emacs and VS Code side by side.
| App | Mac | Windows | Linux |
|---|---|---|---|
| EmacsSearch with a regular expression | CtrlOptionS | CtrlAltS | CtrlAltS |
| VS CodeToggle regex · Find widget open | OptionCmdR | AltR | AltR |
How the apps compare
- Mac: Ctrl+Option+S in Emacs; Cmd+Option+R in VS Code.
- Windows: Ctrl+Alt+S in Emacs; Alt+R in VS Code.
- Linux: Ctrl+Alt+S in Emacs; Alt+R in VS Code.
Where and when it works
- VS Code (Find widget open).
Learn it by pressing it: Emacs shortcuts practice or VS Code shortcuts practice.