

Use the arrow keys to scroll through the list. At the end of the line, inserts one character from the text of your last command.į2 - Creates a new command line by copying your last command line up to the character you type.į3 - Completes the command line with the content from your last command line, starting from the current cursor position to the end of the line.į4 - Deletes characters from your current command line, starting from the current cursor position up to the character you type.į5 - Scans backward through your command history.į7 - Displays a pop-up window with your command history and allows you to select a command. To copy the screen buffer to the Clipboard, press Alt+Space+E+S and then press Alt+Space+E+Y.Ĭtrl+C - Press Ctrl+C to break out of the subprompt or terminate execution.Ĭtrl+End - Press Ctrl+End to delete all the characters in the line after the cursor.Ĭtrl+Left arrow / Ctrl+Right arrow - Press Ctrl+Left arrow or Ctrl+Right arrow to move left or right one word at a time.Ĭtrl+S - Press Ctrl+S to pause or resume the display of output.ĭelete / Backspace - Press Delete to delete the character under the cursor, or press the Backspace key to delete the character to the left of the cursor.Įsc - Press the Esc key to clear the current line.į1 - Moves the cursor one character to the right on the command line. You can then press K for Mark, Y for Copy, P for Paste, S for Select All, L to scroll through the screen buffer, or F to search for text in the screen buffer. You can also break a line at the pipe (|) character.Īlt+Space+E - Displays an editing shortcut menu with Mark, Copy, Paste, Select All, Scroll, and Find options. ` - Press the backward apostrophe key to insert a line break or as an escape character to make a literal character. Here is a list of useful line editing commands supported by Windows PowerShell:

Here's the meat of the article, for those who don't want to follow the link:

Some of these are well-known, I'm sure (like delete, insert, left, right, up and down), but others were new to me. In Powershell in GUI Windows, I know how to mark a portion of the command to copy/cut/whatever, but how would I go about doing that without a mouse (or, in a very Linux terminal vi-like style)? So, I went about searching, and came across this document which discusses Powershell keyboard shortcuts Opens a new window Opens a new window.

I was looking around the internet during my break, and a question popped into my head.
