Notepad++

Notepad++ Column Mode: Edit 100 Lines at the Same Time

Notepad++ Column Mode: Edit 100 Lines at the Same Time

Changing the same spot on dozens of lines by hand gets old fast, and column mode is how Notepad++ gets around it. You select a rectangle of text across several rows, and whatever you type, paste or delete applies to every one of those rows at once.

Hold Alt and drag with the mouse to draw the block. Alt+Shift with the arrow keys does the same thing from the keyboard.

The Column Mode command in the Edit menu doesn’t switch anything on. According to the Notepad++ user manual, it only opens a help box. The separate Column Editor (Alt+C) is what fills every row of the selection with text or a counting number.

People mostly reach for it to add a prefix to every line or to number rows. Editing a single field in fixed-width data is the other common job.

What Is Notepad++ Column Mode?

YouTube player

The user manual uses a few names for it: column-block, rectangular selection and rectangular block selection, alongside column mode itself.

Whatever the name, it selects a vertical block of characters across several lines, so one typed, pasted or deleted value lands on every selected row.

Normal stream selection works the way every other Windows app does. It covers contiguous text, left to right and top to bottom.

A column selection is a rectangle instead, which means you can edit the middle of a line without touching its start or its end.

The Edit > Column Mode menu entry opens a text box explaining how to start a column selection, and that’s the whole job it does.

Scintilla, the editing component under Notepad++, supplies the rectangle selection. Its rectangle commands appear in the Shortcut Mapper under Scintilla commands, for example SCI_LINEDOWNRECTEXTEND on Alt+Shift+Down.

A monospaced font keeps the rows visually aligned. The manual’s sorting notes warn that column selections misbehave with tab characters and proportional fonts, and with multi-byte characters too, so check those first when a block lands in the wrong place.

Only one column selection exists at a time. The manual also states that Ctrl+click multi-editing does not work together with a column-block selection.

How to Enter and Exit Column Mode

YouTube player

Hold Alt while dragging with the mouse, or hold Alt+Shift while pressing the arrow keys. Both draw a rectangle from the caret. Esc, or any caret move without Alt+Shift, drops back to normal selection.

  1. Put the caret at one corner of the block you want.
  2. Hold Alt and drag to the opposite corner, or hold Alt+Shift and press the arrow keys until the rectangle covers the rows.
  3. Reshape the block with Alt+Shift+arrows if you overshoot.
  4. Type, paste, delete, or open the Column Editor.
  5. Press Esc when the edit is done.

With the Mouse

Alt+left-click and drag is the quickest way to cover rows that are all visible on screen. Once you release the button, the manual says the only way to change the rectangle is the keyboard (Alt+Shift+arrows).

Alt+click without a drag only places a caret. Community forum helpers flag that as the usual reason a “column mode does nothing” report turns out to be user error.

With the Keyboard Only

Alt+Shift+arrows extend the rectangle one character or one line at a time. Alt+Shift+PageDown jumps a screen at a time, though the manual admits these extra combinations take practice to predict.

There’s also a no-keys route. Run Begin/End Select in Column Mode from the Edit menu at the first corner, move the caret, then run it again at the second corner. Nothing is held down.

Use the dedicated arrow keys. A community forum thread confirms that arrows sharing keys with the numeric keypad do not extend a column selection.

Shortcut sources also disagree. The tutorial site 10scopes lists Ctrl+Alt with the arrow keys for vertical selection, while the Notepad++ manual and the Shortcut Mapper entries for the rectangle commands use Alt+Shift.

Leaving Column Mode

Esc ends it.

A caret move that does not hold Alt+Shift also returns you to stream selection. The caret lands on the last corner you selected, so a block drawn from lower right to upper left leaves the caret in the upper left.

Draw blocks from the top row down. Since version 8.6.3, converting a column selection to a multi-edit selection keeps the order you drew it in, and the manual’s example turns abc, def, ghi into gbc, def, ahi after a bottom-to-top cut and paste.

How to Type, Delete and Paste Inside a Column Selection

YouTube player

Anything you type or delete repeats across every row of the rectangle, and paste does too. Copy and cut take the rectangle itself, line endings included.

Typing and Deleting

Typed characters appear on every selected row at once, according to the manual. Delete clears the selected block on each row.

After you type into a block, the carets stay lined up, so you can keep typing without redrawing anything.

That comes from Scintilla, whose documentation describes a thin selection mode that applies after a rectangular selection has been typed into, with no characters left selected.

Pasting Into a Column

Paste is where column mode surprises people.

With one line on the clipboard, the text lands on every selected row. Ken Hamady, a Crystal Reports specialist, lists this among the Notepad++ column features he misses elsewhere.

With a column-block on the clipboard, things get fussier. Copying or cutting in column mode puts a rectangle on the clipboard with artificial line endings. The manual says it pastes over an identical-sized rectangle, into another document, or into another application.

The trap is pasting that block at column 1 of an empty line. The first row pastes fine, but the remaining rows push existing text on later lines to the right, and the manual’s fix is to press Enter beforehand to add enough blank lines.

Behavior also shifted between releases. A GitHub issue filed against v8.6.7 (May 2024) reports that pasting a copied rectangular selection into a rectangular selection with half as many lines or fewer inserted several copied lines, line endings included, into each target line, and asks for the older Scintilla behavior back.

Test a paste on a scratch copy before trusting it on real data.

How the Column Editor Dialog Works

Alt+C opens a dialog that fills every row of the active column or multi-selection with the same text or with a counting number. The same dialog sits under Edit > Column Editor.

Column mode only selects. The inserting happens in the Column Editor.

The dialog needs a selection first, and a zero-width selection (a caret stretched across several lines) counts. With one row selected it inserts one value, and with N rows it inserts N values, as community forum replies explain.

The title bar reads Column / Multi-Selection Editor because the manual says it also works on Ctrl+click multi-edit selections.

Text to Insert puts the same text in every row. Number to Insert puts in increasing numbers instead, and the fields in this table control how:

FieldWhat it doesExample
Initial numberFirst value inserted1
Increase byStep between rows; 0 or empty repeats one number5 gives 1, 6, 11
RepeatEach number appears n times2 gives 1, 1, 2, 2
LeadingNone, Zeros or Spaces, padded to equal widthZeros gives 01 to 10 over 10 rows
FormatDec, Hex, Oct or Bin; hex has an upper or lower case optionHex, step B: 1, C, 17, 22, 2D

The number fields always read in the selected format. That’s why the manual’s hex example uses B (eleven) in Increase by.

Numbering runs top to bottom even when you drew the selection from the bottom, per the manual.

One documented conflict has since been resolved. The manual says an empty Repeat field defaults to 1, but versions 8.9.2 and 8.9.3 broke that. A community forum report on version 8.9.3 (March 2026) says the dialog refuses a blank Repeat, and replies trace it to a change in version 8.9.2.

Version 8.9.4 (April 2026) fixed it. If you’re stuck on 8.9.2 or 8.9.3, type 1 in the field and the question never comes up.

How to Insert a Number Sequence or Line Numbers

YouTube player

Select the rows, press Alt+C, choose Number to Insert, fill Initial number and Increase by, and click OK. The dialog inserts digits and nothing else.

A “1. ” style prefix takes two passes, because the separator is not part of the number. A Notepad++ community forum answer from 2018 describes the same order.

  1. Draw a zero-width column selection down the lines, starting at column 1.
  2. Open the Column Editor and add the separator (a dot and a space) with Text to Insert.
  3. Draw the zero-width column again at column 1, in front of the separator.
  4. Insert the numbers with Number to Insert.

Repeat sets how many rows share a number before the sequence steps. Initial number 1, Increase by 2 and Repeat 3 over 18 lines gave 1, 1, 1, 3, 3, 3 and on up to 11, 11, 11 in a forum test.

Select only 10 rows with Repeat set to 10 and every row shows 1. The second number never appears.

Countdowns are awkward. A community forum thread reports that the Column Editor accepts no negative numbers, so a countdown from 512 cannot use a negative Increase by. Build the numbers ascending, select just those lines, then run Edit > Line Operations > Sort Lines As Integers Descending.

One poster who skipped the selection found the surrounding text reordered too.

Large steps in non-decimal formats have broken the dialog before. A GitHub issue filed against v8.6.7 (May 2024) reports a crash with Format set to Hex, Increase by 9999999 and at least 28 lines selected.

How to Add a Prefix or Suffix to Every Line

Column mode handles a prefix cleanly. A suffix only works when every line ends at the same column, since short lines get padded and the suffix drifts away from the text.

For a prefix, put the caret at column 1 of the first line, hold Alt+Shift, press Down to the last row, then type. The text lands on every row.

A suffix on ragged lines is where it falls apart. Column blocks work in virtual space, and a forum answer explains that typing past a short line’s end inserts spaces up to the caret column first.

Editing one CSV column works only when every field before that column has the same width on every row. One longer value shifts the column, and the edit lands inside the wrong field.

Aligning data is easier. Draw a zero-width column in the gap before a field that sits too far left, then type spaces until it lines up.

Find and Replace in regular expression mode attaches text to the true line boundaries. Search for ^ and replace with the prefix, or search for $ and replace with the suffix.

The manual’s note on zero-length matches describes the ^ case directly. Tick In selection to confine Replace All to the lines you highlighted.

The ^ anchor also matches empty lines, so a prefix lands on them too. The manual’s own example uses ^(?=.) to skip blank lines when it adds file:/// to a list of paths.

One documented trap: open the dialog with more than 1024 characters selected and Notepad++ ticks In selection on its own, so Replace All only touches the selection.

The threshold is the Minimum Size for Auto-Checking In selection setting under Settings > Preferences > Searching, and 0 turns auto-ticking off. By default the selection is not copied into Find what at that size, because the auto-fill limit is also 1024 characters (adjustable up to 16383 in the same section).

The Searching page of the manual still says the selection is copied into Find what and that Replace All then reports 1 occurrence, which conflicts with its own Preferences page and with the v8.5 change log.

Why Is Notepad++ Column Mode Not Working?

Most reports come down to another program capturing the Alt key, a Scintilla rectangle shortcut that got reassigned, tabs or a proportional font breaking the alignment, or Word Wrap being on.

SymptomCauseFix
Alt+Shift+arrows do nothingRemote session swallows AltTest on the local machine
Same, on the local machineRectangle shortcut reassignedCheck Shortcut Mapper, Scintilla commands
Block looks right, edit lands offTabs or proportional fontConvert tabs, use a monospaced font
Block covers fewer lines than shownWord Wrap splits display linesTurn Word Wrap off for the edit

Forum helpers report that a Remote Desktop session from a Linux machine hands the Alt key to the local system, so column edits fail across the link.

For the shortcut check, look for SCI_LINEUPRECTEXTEND, SCI_LINEDOWNRECTEXTEND, SCI_CHARLEFTRECTEXTEND and SCI_CHARRIGHTRECTEXTEND, each on Alt+Shift plus its arrow. The poster in a v7.5.1 forum thread had all four intact and still saw no column selection, so a clean Shortcut Mapper does not clear the Alt key itself.

TAB to Space under Edit > Blank Operations replaces each tab with enough spaces to reach the next tab stop. Run it with no selection first, because the manual says Blank Operations do nothing to an active column selection.

The columns are not always character counts. A GitHub issue against v7.9.4 (2021) reports blocks with different character counts per row, and the selection appears to follow x-pixel positions, which a variable-width font exposes.

Word Wrap changes only the display. A forum reply notes the file still holds one line where the screen shows two, and a GitHub thread adds that rectangular selections do not work well with wrap on.

To make a block reach past short lines on purpose, turn on virtual space under Settings > Preferences > Editing 1. Per the manual, typing in that empty area makes Notepad++ fill the gap with spaces first.

The status bar tells a true rectangle from carets that merely line up. A contributor in GitHub issue 15151 (filed against v8.6.7, 2024) says recent versions blur the two.

Column Mode, Multi-Editing or Regex: Which Should You Use?

YouTube player

It depends on what the edit hinges on. If the position within the line matters, column mode is the fit. If you’re hitting the same text in scattered places, multi-editing is better. And when the edit depends on where a line really starts or ends, Find and Replace in regular expression mode wins.

MethodSetupBest forFails when
Column modeAlt+drag or Alt+Shift+arrowsAligned blocks, number sequencesLines end at different columns, or tabs shift the block
Multi-editingCtrl+click, or Edit > Multi-Select commandsScattered matches of the same textCtrl+click is mouse-only, so many carets mean many clicks
Regex Find and ReplaceCtrl+H, Regular expression modeLine starts and ends at any lengthNo counter for numbering; pattern errors surface late

Multi-editing scales through the menu. Multi-Select All finds every match of a word and places a caret on each, and Multi-Select Next adds them one at a time.

Both accept a keyboard shortcut in the Shortcut Mapper, which removes the mouse-only limit of Ctrl+click. The manual’s multi-edit demo comes from the v8.6 release announcement.

Test a regex pattern with Find Next first. The manual (checked November 2026) says the invalid-expression error appears only on that button, and every other button just reports no result.

The substitution syntax in the manual has no counter, so numbered lines stay a Column Editor job even when regex handles everything else.

For prefixes and suffixes on real files, regex wins. Column mode earns its place on numbering and fixed-width alignment.

Notepad++ Column Mode FAQ

Is Notepad++ column mode available on Mac or Linux?

Not natively. Notepad++ is a Windows program, and its creator Don Ho has said it has never released a macOS version (MacRumors, May 2026).

A community port from April 2026 was renamed Nextpad++ after a trademark dispute, and the original still runs through Wine or a Windows virtual machine.

How do you make a column selection in Visual Studio Code?

Place the cursor in one corner, hold Shift+Alt, and drag to the opposite corner.

The editor documentation (2026) also lists a Column Selection mode under the Selection menu. It turns plain mouse drags and arrow keys into column selections until you switch it off.

Which shortcut selects a column in Sublime Text?

On Windows, hold Shift and drag with the right mouse button, or drag with the middle button. On Mac, hold Option and drag with the left button.

The Sublime Text documentation lists Ctrl+Alt+Up and Ctrl+Alt+Down as the Windows keyboard route.

Which Vim feature matches column mode?

Vim calls it visual block mode. Press Ctrl+V, extend the block with the movement keys, then press I to insert at its left edge or A to append after it.

The typed text appears on every line once you press Esc. Where Ctrl+V is mapped to paste, Ctrl+Q starts the block, per the Vim documentation.

How do you select a column of text in Word?

Hold Alt and drag across the text.

The keyboard route is Ctrl+Shift+F8 followed by the arrow keys, and Esc leaves the mode, according to Microsoft knowledge base articles.

What to Check Before a Column Edit

Notepad++ column mode edits land where the block appears only on clean text: no tabs, a monospaced font, and aligned line ends wherever the edit touches them.

Work through it cheapest check first. Normalise tabs and font, rehearse the edit on a scratch copy, and switch to regex when the line ends differ.

That order puts the check that costs seconds ahead of the one that costs a manual repair. The trade-off is one scratch copy per edit.

Column behaviour also moves between releases: reports on paste handling (v8.6.7, May 2024) and the blank Repeat field (v8.9.3, March 2026) arrived within 22 months of each other.

A column edit repeated on later files deserves a retest after every update. This advice reflects the manual as checked in November 2026.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.