Common editing
Copy
Where it worksMost apps
Windows
Ctrl + CmacOS
Command + CWhat it does
Copies the selected text, file, or item to the clipboard.
Programming
Compare essential Windows and macOS shortcuts for editing, system navigation, screenshots, browsers, VS Code, and terminal work.
48 matching shortcuts
Common editing
Where it worksMost apps
Ctrl + CCommand + CCopies the selected text, file, or item to the clipboard.
Common editing
Where it worksMost apps
Ctrl + VCommand + VPastes the current clipboard contents at the cursor or selection.
Common editing
Where it worksMost apps
Ctrl + XCommand + XRemoves the selection and places it on the clipboard when the app supports cutting.
Common editing
Where it worksMost apps
Ctrl + ZCommand + ZReverses the most recent supported action.
Common editing
Where it worksMost editing apps
Ctrl + YCtrl + Shift + ZShift + Command + ZRestores an action that was undone.
Applications can override or customize this shortcut. Check the app menu when it behaves differently.
Common editing
Where it worksMost apps
Ctrl + ACommand + ASelects all relevant content in the current view or field.
Common editing
Where it worksDocuments, editors, and browsers
Ctrl + FCommand + FOpens the current app's search field for text or items.
Common editing
Where it worksDocument and editing apps
Ctrl + SCommand + SSaves changes to the active file or document.
Text and code navigation
Where it worksText fields and code editors
Ctrl + Left/Right ArrowOption + Left/Right ArrowMoves the cursor one word at a time instead of one character.
Text and code navigation
Where it worksText fields and code editors
HomeEndCommand + Left ArrowCommand + Right ArrowMoves the cursor directly to the beginning or end of the current line.
Text and code navigation
Where it worksDocuments and code editors
Ctrl + HomeCtrl + EndCommand + Up ArrowCommand + Down ArrowMoves directly to the beginning or end of a document.
Text and code navigation
Where it worksText fields and code editors
Ctrl + Shift + Left/Right ArrowOption + Shift + Left/Right ArrowExpands or shrinks the selection one word at a time.
Text and code navigation
Where it worksText fields and code editors
Ctrl + BackspaceOption + DeleteDeletes the word immediately before the cursor.
Apps and system
Where it worksOperating system
Alt + TabCommand + TabShows running apps or windows and moves focus to another one.
Apps and system
Where it worksWindows Search or Spotlight
Windows + SCommand + SpaceOpens the system search interface for apps, files, settings, and other results.
Apps and system
Where it worksOperating system
Windows + LControl + Command + QLocks the current session without closing open work.
Apps and system
Where it worksOperating system
Windows + DFn + F11Temporarily moves or hides windows so the desktop is visible.
On Mac, function-key settings can require Fn or Globe, and the shortcut can be customized.
Apps and system
Where it worksTask View or Mission Control
Windows + TabControl + Up ArrowDisplays open windows and desktop workspaces for visual navigation.
Apps and system
Where it worksVirtual desktops or Spaces
Windows + Ctrl + Left/Right ArrowControl + Left/Right ArrowMoves to the workspace immediately to the left or right.
Apps and system
Where it worksOperating system input sources
Windows + SpaceControl + SpaceCycles through installed keyboard languages or input sources.
Keyboard layout, input-source settings, and custom shortcuts can change this key combination.
Screen capture
Where it worksOperating system
Windows + PrtScnShift + Command + 3Captures the full screen and saves the image using the system screenshot workflow.
Screen capture
Where it worksSnipping Tool or macOS screenshot
Windows + Shift + SShift + Command + 4Lets you drag over a specific portion of the screen to capture it.
Screen capture
Where it worksGame Bar or macOS Screenshot toolbar
Windows + Alt + RShift + Command + 5Starts a supported Windows app recording or opens the macOS capture and recording controls.
Windows Game Bar recording availability and capture scope depend on the active app and system settings.
Browser
Where it worksChrome and most browsers
Ctrl + TCommand + TOpens a new browser tab and moves focus to it.
Browser
Where it worksChrome and most browsers
Ctrl + WCommand + WCloses the active browser tab.
Browser
Where it worksChrome and most browsers
Ctrl + Shift + TCommand + Shift + TRestores recently closed tabs in reverse closing order.
Browser
Where it worksChrome and most browsers
Ctrl + LCommand + LSelects the current address so you can enter a URL or search immediately.
Browser
Where it worksChrome and most browsers
Ctrl + RCommand + RReloads the current page using the browser's normal cache behavior.
Browser
Where it worksChrome
Ctrl + Shift + RCommand + Shift + RRequests a fresh page load while bypassing the normal cached copy.
Applications can override or customize this shortcut. Check the app menu when it behaves differently.
Browser
Where it worksChrome and Chromium-based browsers
Ctrl + Shift + IF12Command + Option + IOpens the browser tools used to inspect HTML, CSS, console output, network requests, and storage.
Browser
Where it worksChrome
Ctrl + TabCtrl + Shift + TabCommand + Option + Right ArrowCommand + Option + Left ArrowMoves to the next or previous open browser tab.
Applications can override or customize this shortcut. Check the app menu when it behaves differently.
VS Code
Where it worksVisual Studio Code
Ctrl + PCommand + PSearches workspace files by name and opens the selected file.
VS Code
Where it worksVisual Studio Code
Ctrl + Shift + PF1Command + Shift + PF1Searches and runs VS Code commands without navigating menus.
VS Code
Where it worksVisual Studio Code
Ctrl + Shift + FCommand + Shift + FSearches text across files in the current workspace.
VS Code
Where it worksVisual Studio Code
Ctrl + `Control + `Shows or hides the integrated terminal panel.
Keyboard layout, input-source settings, and custom shortcuts can change this key combination.
VS Code
Where it worksVisual Studio Code
Ctrl + /Command + /Adds or removes the language's line-comment marker for the current line or selection.
Keyboard layout, input-source settings, and custom shortcuts can change this key combination.
VS Code
Where it worksVisual Studio Code
Shift + Alt + FShift + Option + FRuns the configured formatter for the active document.
A formatter must be available and selected for the current language.
VS Code
Where it worksVisual Studio Code
F12F12Fn + F12Moves from a symbol reference to its detected definition.
On Mac keyboards, function-key settings can require Fn or Globe with F12.
VS Code
Where it worksVisual Studio Code
F2F2Fn + F2Renames a recognized symbol across supported references.
Language support determines whether all references can be found and renamed safely.
VS Code
Where it worksVisual Studio Code
Ctrl + \Command + \Opens another editor group so files can be viewed side by side.
Keyboard layout, input-source settings, and custom shortcuts can change this key combination.
VS Code
Where it worksVisual Studio Code
Ctrl + K, Ctrl + SCommand + K, Command + SOpens the searchable editor for viewing, changing, and troubleshooting keybindings.
Terminal and shell
Where it worksPowerShell, Bash, zsh, and many shells
Ctrl + CControl + CSends an interrupt signal or cancellation request to the active terminal process.
Terminal shortcuts depend on the shell, line editor, terminal app, and keymap configuration.
Terminal and shell
Where it worksPowerShell, Bash, zsh, and many shells
Ctrl + LControl + LClears the visible terminal area while usually preserving command history.
Terminal shortcuts depend on the shell, line editor, terminal app, and keymap configuration.
Terminal and shell
Where it worksPowerShell, Bash, zsh, and many shells
TabTabCompletes or cycles through matching commands, paths, and arguments.
Terminal shortcuts depend on the shell, line editor, terminal app, and keymap configuration.
Terminal and shell
Where it worksPowerShell, Bash, zsh, and many shells
Up/Down ArrowUp/Down ArrowMoves backward or forward through commands entered earlier.
Terminal shortcuts depend on the shell, line editor, terminal app, and keymap configuration.
Terminal and shell
Where it worksPSReadLine, Bash, zsh, and compatible shells
Ctrl + RControl + RStarts a reverse search through previously entered commands.
Terminal shortcuts depend on the shell, line editor, terminal app, and keymap configuration.
Terminal and shell
Where it worksShell line editors
HomeCtrl + AControl + AMoves the cursor to the beginning of the current command line.
Terminal shortcuts depend on the shell, line editor, terminal app, and keymap configuration.
Terminal and shell
Where it worksShell line editors
EndCtrl + EControl + EMoves the cursor to the end of the current command line.
Terminal shortcuts depend on the shell, line editor, terminal app, and keymap configuration.