Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how to select a portion of text within a windows command prompt without using a mouse? e.g. shift + left/right arrow. I have tried lots of different command prompts (cmd, powershell, cygwin, mintty) and have yet to find a shell which can do this without using a mouse. I know it's possible as I do it all the time in on mac os x.

share|improve this question
up vote 6 down vote accepted

As Ignacio said however you need to ensure "QuickEdit Mode" is enabled from the CMD properties.

  1. ALT+Space -> E -> M (now in mark mode)

  2. move the pointer using arrow keys

  3. Hold shift and select the area to copy

  4. Hit Enter and it's now on the clipboard

share|improve this answer
Ignore me. Don't need QuickEdit mode – Joel Mansford Jul 12 '10 at 10:45
This works, but is there a way to do this with the mouse? – John Egbert Jun 16 '14 at 22:22
For me its ALT + SPACE + E + K. – Shaun Luttin Oct 3 '14 at 0:51

AltSpace, Mark, arrow keys, hold Shift, arrow keys, Enter.

share|improve this answer
"does not work in mintty" :)) – akira Jul 12 '10 at 8:52
@akira: mintty probably does not use a Windows console. – Ignacio Vazquez-Abrams Jul 12 '10 at 8:56
@Ignacio Vazquez-Abrams How do you make button icons? – AndrejaKo Jul 12 '10 at 9:00
@AndrejaKo: <kbd>Alt</kbd> – Ignacio Vazquez-Abrams Jul 12 '10 at 9:16
@Ignacio Vazquez-Abrams: thats what the smiley at the end was for. – akira Jul 12 '10 at 9:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.