How-to: PowerShell Shortcut Keys

Keyboard shortcuts for the Windows CMD shell and PowerShell.

Moving  
Move to beginning of line. [Home]
Move to end of line. [End]
Move one word to the left (backward). Ctrl + ←
Move one word to the right (forward). Ctrl + →
Move the cursor one character in the direction specified. Arrow keys ↑→↓←
Move the screen one page up. Page up
Move the screen one page down. Page down
Move the cursor to the beginning of the buffer. Ctrl + Home (Mark mode)
Move the cursor to the end of the buffer. Ctrl + End (Mark mode)
   
Editing  
Clear command line. ESC
Toggle Insert/Overwrite. INSERT
Autocomplete folder/file name. [Tab]
also Shift+ [Tab]
Erase line to the left. Ctrl + Home
Erase line to the right. Ctrl + End
Erase character to the left.
Execute the current command. Enter
Continue typing on the next line. Shift+Enter
Insert a line break or as an escape character to make a literal character.
You can also break a line at the pipe '|' character without a line continuation character.
PowerShell 7 also allows the use of the pipe symbol at the start of a line as a
continuation character without needing a backtick.
`
Enter Mark mode. Ctrl + M
Select text in mark mode. Shift + ←/→
Copy the selected text. Ctrl + C
or Ctrl + Insert
Paste the selected text. Ctrl + V
or Shift + Insert
Display the editing shortcut menu (mark/copy/paste).
If QuickEdit is disabled (in Properties>Options), then a Right-click will display an editing
shortcut menu.
To copy text to the Clipboard, right-click, choose Select, select the text and then press Enter.
Alt + Space + E
Signal end-of-file. Ctrl + Z
Deleting  
Delete the character under the cursor. Delete
Delete the character to the left of the cursor. ⌫ Backspace
Clear the current line. Esc
Delete all characters in the line after the cursor. Ctrl+End
Delete all characters from the cursor to the beginning of a line. Ctrl+Home
Other  
Scroll through history of typed commands. ↓ / ↑
Clear the command history. Alt + F7
Terminate execution or Cancel the current command (if nothing is selected). Ctrl + C
Switch to/from full screen mode. Alt + ENTER
or F11
Scroll window up. ⇧ + PgUp
Scroll window Down. ⇧ + PgDn

New Windows Terminal Keyboard shortcuts

Application-level shortcuts:  
Find. Ctrl + ⇧ + F
Open the dropdown. Ctrl + ⇧ + Space
Open settings files. Ctrl ,
Open settings files. Ctrl + Alt ,
Tab management shortcuts:  
New tab. Ctrl + ⇧ + T
New tab. Ctrl + ⇧ + 1 thru 9
Duplicate tab. Ctrl + ⇧ + D
Open next tab. Ctrl + Tab
Open previous tab. Ctrl + ⇧ + Tab
Open a specific tab. Ctrl + Alt 1 thru 9
Pane management shortcuts:  
Move pane focus. Alt + ↑→↓←
Resize a pane. Alt + ⇧ + ↑→↓←
Split a pane. Alt + ⇧ + D
The control the split direction with:
Alt + ⇧ -
or Alt + ⇧ +
Close pane. Ctrl + ⇧ + W
Clipboard integration:  
Copy the selected text. Ctrl + C
or Ctrl + ⇧ + C
or Ctrl + Insert
Paste the selected text. Ctrl + V
or Ctrl + ⇧ + V
or Shift + Insert
Scrollback:  
Scroll up/Down. Ctrl + ⇧ + ↑
Ctrl + ⇧ + ↓
Scroll up one page. Ctrl + ⇧ + Pg Up
Scroll down one page. Ctrl + ⇧ + Pg Dn
Visual adjustment:  
Adjust font size. Ctrl + =
Adjust font size. Ctrl + -
Reset font size. Ctrl + 0
Toggle High Visibility screen mode. Left Alt + Left ⇧ + PrtScn
  $$       The last token in the last line received by the session. (Like !$ in bash )
           (this is an automatic variable)

PowerShell ISE shortcuts:

  Ctrl-M   Expand or Collapse Outlining
  CTRL+F   Find in script
  CTRL+S   Save
  F5       Run
  F8       Run Selection

“Seeing is not enough; you have to feel what you photograph” ~ Andre Kertesz

Related PowerShell Cmdlets

General Windows - Keyboard shortcuts.
Clear-History - Delete entries from the command history.
Get-History - Get a listing of the session history.


 
Copyright © 1999-2024 SS64.com
Some rights reserved