PowerShell Keyboard Shortcuts

PowerShell is a cross-platform task automation solution and scripting language that is fundamental for system administrators and DevOps engineers. Mastering PowerShell keyboard shortcuts is the most effective way to navigate the terminal, manage command history, and debug scripts with professional speed. Whether you are using the classic blue console, the modern Windows Terminal, or the PowerShell extension in VS Code, these default keybindings allow for high-velocity system management.

This guide details the essential PowerShell shortcuts for the 2026 version. From basic command-line editing to advanced history searching and script execution, these hotkeys ensure your workflow remains uninterrupted by manual typing or menu searches.

Command-Line Editing and Navigation

These shortcuts help you manipulate the current command line quickly, saving time on long pathnames and complex parameters.

ActionKeyboard Key
Auto-complete (Files/Commands)Tab
Cycle Through Completion OptionsTab / Shift + Tab
Move to Start of LineHome
Move to End of LineEnd
Move Cursor Word by WordCtrl + Left / Right Arrow
Delete Word to the LeftCtrl + Backspace
Delete Word to the RightCtrl + Delete
Clear Line (from cursor to start)Ctrl + Home
Clear Line (from cursor to end)Ctrl + End

Command History Shortcuts

Instead of retyping long commands, use these shortcuts to recall and search through your previous inputs.

ActionKeyboard Key
Cycle Through Previous CommandsUp / Down Arrow
Search History (Backward)Ctrl + R
Search History (Forward)Ctrl + S
Show Command History ListF7
Run Command by History NumberF9
Clear Command HistoryAlt + F7

Execution and Scripting Shortcuts

When working in the console or an editor (like VS Code in “ISE Mode”), these keys control how your code runs.

ActionKeyboard Key
Execute Current Selection / LineF8
Run Entire ScriptF5
Interrupt / Stop CommandCtrl + C
Clear Console ScreenCtrl + L (or type cls)
Open List of Available SnippetsCtrl + J
Show Parameter HintsCtrl + Space

Common PowerShell Aliases (Shortcuts)

In addition to key combinations, PowerShell includes “Aliases”—short commands that act as shortcuts for longer cmdlets.

AliasFull CmdletPurpose
gciGet-ChildItemList files and folders (similar to dir or ls)
gpsGet-ProcessList running processes
gcmGet-CommandSearch for available commands
galGet-AliasList all defined shortcuts
slSet-LocationChange directory (similar to cd)
gcGet-ContentRead the content of a file (similar to cat)

Professional Tip: The “Ctrl + R” Power Move

The Ctrl + R shortcut is arguably the most powerful tool for a PowerShell user. It triggers a recursive search of your command history. Simply press the keys and start typing any part of a previous command (like a specific server name or complex flag); PowerShell will instantly suggest the most recent match. Press Ctrl + R again to cycle through older matches.

If you are using Visual Studio Code for PowerShell development, you can enable “ISE Mode” via the Command Palette (Ctrl + Shift + P) to bring back the familiar keyboard layout of the legacy PowerShell Integrated Scripting Environment.