Select text vertically (column/rectangular selection) in Notepad++

Use Notepad++'s rectangular selection to highlight the same column across multiple lines by holding the Alt key while dragging with the mouse.

What the video covers

Show how to make a rectangular (vertical/column) text selection in Notepad++ using the Alt key and mouse.

Watch the video on YouTube

Step-by-step instructions

  1. Open your text in Notepad++
    Load the file or paste the lines where you want to make a vertical selection.
  2. Position the mouse where the rectangle should start
    Place the cursor at the first line and column where you want the top-left corner of the selection.
  3. Hold the Alt key and click-drag
    Press and hold Alt on your keyboard, then click and drag the mouse down (or up) to form a vertical/rectangular selection across the desired lines.
  4. Edit, copy, or delete the rectangular block
    With the rectangle selected you can type to replace its contents, press Delete or Backspace to remove it, or use Copy/Cut to transfer just that column of text.

Watch the video

Video thumbnail for Select text vertically (column/rectangular selection) in Notepad++ Play tutorial

Watch on YouTube

Why it matters

Rectangular selection lets you edit, copy, or delete the same column of text across many lines without affecting the rest of each line.

Check your result

After the action you should see a highlighted rectangular block covering the same character columns on each selected line. Typing replaces that block; Copy/Paste copies only the rectangular region.

Troubleshooting

If dragging doesn't create a rectangular selection, ensure Notepad++ has focus and try holding the Alt key before clicking. Some systems or utilities may intercept Alt+mouse—close other apps that change Alt behavior. If your keyboard has a different Alt-mode, try the opposite Alt key.