Disable Line Wrapping Selection in Console in Windows 10

A console in Windows 10 is the shell environment where you can run text-based console tools and utilities by typing commands. Its UI is very simple and does not have any buttons or graphical commands. Examples of the console are WSL, PowerShell, and the classic Command Prompt.

Modern Windows versions allow the user to select and copy the text from a console window. By default, the selection will include wrapping lines. This can be disabled. You can make the selection rectangular.

The option will be set for the specific shortcut you used to open a console instance. E.g. if you have multiple command prompt shortcuts, you can set the desired selection behavior for each of them individually. This way, PowerShell, WSL, and the command prompt may have their own independent settings.

This is the default selection in a Windows console window with the line wrapping feature enabled.

The Line Wrapping selection is disabled:

To disable Line Wrapping Selection in a console in Windows 10,

  1. Open a new command prompt window, elevated command promptPowerShell, or WSL.
  2. Right-click on the title bar of its window and select Properties from the context menu.
  3. On the Options tab of the Properties dialog, uncheck (turn off) the option ENable line wrapping selection under the Text Selection group.
  4. Click on the OK button to apply the change.

Temporary Disable Line Wrapping Selection

Instead of changing the option for a console window or shortcut, you can temporarily disable the line wrapping selection on-the-fly. This can be done as follows.

  1. Open a console window.
  2. Press and hold the ALT key on the keyboard.
  3. Select the desired portion of the console window.
  4. The selection is now rectangular.

You are done.

Tip: In Windows 10 build 18298, are a number of changes were made to the built-in console subsystem of the operating system. There is a new "terminal" tab in console option that allows adjusting several new options for the Command Prompt, PowerShell, and WSL. Check out the following reviews:

Articles of interest:

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

One thought on “Disable Line Wrapping Selection in Console in Windows 10”

Leave a Reply

Your email address will not be published.

Exit mobile version
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.