Windows 10 gets a fresh command prompt and lots of hotkeys

Well, from what I can tell looking at the Preview, there’s a LOT of cool Console goodness coming in Windows 10.

Here’s a list of hotkeys in the Windows 10 Technical Preview console. This is just hotkeys! Be sure to explore the Properties dialog as well, resize, word wrapping, and more.

TEXT SELECTION KEYS

These combinations interoperate with the mouse so you can start selecting with the mouse and continue with one of these commands, or vice versa.

Selection Key CombinationDescription
SHIFT + LEFT ARROWMoves the cursor to the left one character, extending the selection.
SHIFT + RIGHT ARROWMoves the cursor to the right one character, extending the selection.
SHIFT + UP ARROWSelects text up line by line starting from the location of the insertion point.
SHIFT + DOWN ARROWExtends text selection down one line, starting at the location of the insertion point.
SHIFT + ENDIf cursor is in current line being edited* First time extends selection to the last character in the input line.

* Second consecutive press extends selection to the right margin.

Else

Selects text from the insertion point to the right margin.

SHIFT + HOMEIf cursor is in current line being edited* First time extends selection to the character immediately after the command prompt.

* Second consecutive press extends selection to the left margin.

Else

Extends selection to the left margin.

SHIFT + PAGE DOWNExtends selection down one screen.
SHIFT + PAGE UPExtends selection up one screen.
CTRL + SHIFT + RIGHT ARROWExtends the selection one word to the right.
CTRL + SHIFT + LEFT ARROWExtends the selection one word to the left.
CTRL + SHIFT + HOMEExtend selection to the beginning of the screen buffer.
CTRL + SHIFT + ENDExtend selection to the end of the screen buffer.
CTRL + AIf cursor is in current line being edited (from first typed char to last type char) and line is not empty andany selection cursor is also within the line being editedSelects all text after the prompt.  (phase 1)

Else

Selects the entire buffer.  (phase 2)

EXTRA FUN WITH CTRL + A

CTRL + A behavior is interesting. Regardless of the state of mark mode and quick edit mode, one of two things should happen. Either the entire buffer is selected, or (only in a single case) ‘2-Phase select’ starts.  2-Phase select is the process where the first CTRL-A selects the characters to the right of the edit line prompt, and the second press selects the entire buffer.

EDITING KEYS

As I mentioned above you can copy and paste text with the keyboard. When copying text, you might worry that CTRL + C has always been the BREAK command. This is a nice touch, it will still send the break signal to the running application when no text is selected. The first CTRL-C copies the text and clears the selection, and the second one signals the break. Nice attention to detail, IMHO.

Editing Key CombinationDescription
CTRL + VPaste text into the command line.
SHIFT + INSPaste text into the command line.
CTRL + CCopy selected text to the clipboard.
CTRL + INSCopy selected text to the clipboard.

MARK MODE KEYS

These keys function in mark mode. You can enter this mode by right-clicking anywhere in the console title bar and choosing Edit->Mark from the context menu as before, or via the new shortcut combination, CTRL-M. In the original console, mark mode resulted in block mode text selection. While in mark mode, you can hold down the ALT key at the start of a text selection command to use block mode in the new console. The selection key combinations above are all available in mark mode. CTRL + SHIFT + ARROW operations select by character and not by word while in mark mode.

Mark Mode Key CombinationDescription
CTRL + MEnter “Mark Mode” to move cursor within window.
ALTIn conjunction with one of the selection key combinations, begins selection in block mode.
ARROW KEYSMove cursor in the direction specified.
PAGE KEYSMove cursor by one page in the direction specified.
CTRL + HOMEMove cursor to beginning of buffer.
CTRL + ENDMove cursor to end of buffer.

HISTORY NAVIGATION KEYS

Navigation  Key CombinationDescription
CTRL + UP ARROWMoves up one line in the output history.
CTRL + DOWN ARROWMoves down one line in the output history.
CTRL + PAGE UPMoves up one page in the output history.
CTRL + PAGE DOWNMoves down one page in the output history.

OTHER KEYS

Other Key CombinationDescription
CTRL + FOpens “Find” in console dialog.
ALT + F4

Close the console window, of course!

©2015 Scott Hanselman