Skip to content

Instantly share code, notes, and snippets.

@gerane
Created January 2, 2017 19:02
Show Gist options
  • Save gerane/67f2c2e739a7ee6def06161e44b1c608 to your computer and use it in GitHub Desktop.
Save gerane/67f2c2e739a7ee6def06161e44b1c608 to your computer and use it in GitHub Desktop.
Key Function Description
--- -------- -----------
Enter AcceptLine Accept the input or move to the next line if input is missing a c...
Shift+Enter AddLine Move the cursor to the next line without attempting to execute th...
Ctrl+Enter InsertLineAbove Inserts a new empty line above the current line without attemptin...
Ctrl+Shift+Enter InsertLineBelow Inserts a new empty line below the current line without attemptin...
Escape RevertLine Equivalent to undo all edits (clears the line except lines import...
LeftArrow BackwardChar Move the cursor back one character
RightArrow ForwardChar Move the cursor forward one character
Ctrl+LeftArrow BackwardWord Move the cursor to the beginning of the current or previous word
Ctrl+RightArrow NextWord Move the cursor forward to the start of the next word
Shift+LeftArrow SelectBackwardChar Adjust the current selection to include the previous character
Shift+RightArrow SelectForwardChar Adjust the current selection to include the next character
Ctrl+Shift+LeftArrow SelectBackwardWord Adjust the current selection to include the previous word
Ctrl+Shift+RightArrow SelectNextWord Adjust the current selection to include the next word
UpArrow PreviousHistory Replace the input with the previous item in the history
DownArrow NextHistory Replace the input with the next item in the history
Home BeginningOfLine Move the cursor to the beginning of the line
End EndOfLine Move the cursor to the end of the line
Shift+Home SelectBackwardsLine Adjust the current selection to include from the cursor to the en...
Shift+End SelectLine Adjust the current selection to include from the cursor to the st...
Delete DeleteChar Delete the character under the cusor
Backspace BackwardDeleteChar Delete the charcter before the cursor
Ctrl+Spacebar MenuComplete Complete the input if there is a single completion, otherwise com...
Tab TabCompleteNext Complete the input using the next completion
Shift+Tab TabCompletePrevious Complete the input using the previous completion
Ctrl+a SelectAll Select the entire line. Moves the cursor to the end of the line
Ctrl+c CopyOrCancelLine Either copy selected text to the clipboard, or if no text is sele...
Ctrl+C Copy Copy selected region to the system clipboard. If no region is se...
Ctrl+l ClearScreen Clear the screen and redraw the current line at the top of the sc...
Ctrl+r ReverseSearchHistory Search history backwards interactively
Ctrl+s ForwardSearchHistory Search history forward interactively
Ctrl+v Paste Paste text from the system clipboard
Ctrl+x Cut Delete selected region placing deleted text in the system clipboard
Ctrl+y Redo Redo an undo
Ctrl+z Undo Undo a previous edit
Ctrl+Backspace BackwardKillWord Move the text from the start of the current or previous word to t...
Ctrl+Delete KillWord Move the text from the cursor to the end of the current or next w...
Ctrl+End ForwardDeleteLine Delete text from the cursor to the end of the line
Ctrl+Home BackwardDeleteLine Delete text from the cursor to the start of the line
Ctrl+] GotoBrace Go to matching brace
Ctrl+Alt+? ShowKeyBindings Show all key bindings
Alt+. YankLastArg Copy the text of the last argument to the input
Alt+0 DigitArgument Start or accumulate a numeric argument to other functions
Alt+1 DigitArgument Start or accumulate a numeric argument to other functions
Alt+2 DigitArgument Start or accumulate a numeric argument to other functions
Alt+3 DigitArgument Start or accumulate a numeric argument to other functions
Alt+4 DigitArgument Start or accumulate a numeric argument to other functions
Alt+5 DigitArgument Start or accumulate a numeric argument to other functions
Alt+6 DigitArgument Start or accumulate a numeric argument to other functions
Alt+7 DigitArgument Start or accumulate a numeric argument to other functions
Alt+8 DigitArgument Start or accumulate a numeric argument to other functions
Alt+9 DigitArgument Start or accumulate a numeric argument to other functions
Alt+- DigitArgument Start or accumulate a numeric argument to other functions
Alt+? WhatIsKey Show the key binding for the next chord entered
Alt+F7 ClearHistory Remove all items from the command line history (not PowerShell hi...
F3 CharacterSearch Read a character and move the cursor to the next occurence of tha...
Shift+F3 CharacterSearchBackward Read a character and move the cursor to the previous occurence of...
F8 HistorySearchBackward Search for the previous item in the history that starts with the ...
Shift+F8 HistorySearchForward Search for the next item in the history that starts with the curr...
PageUp ScrollDisplayUp Scroll the display up one screen
PageDown ScrollDisplayDown Scroll the display down one screen
Ctrl+PageUp ScrollDisplayUpLine Scroll the display up one line
Ctrl+PageDown ScrollDisplayDownLine Scroll the display down one line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment