Add Line Number before each line in Notepad++ using Column Editor


If you have a use case wherein you want to add a line number before each line, you can do that using Column Editor in Notepad++ text Editor.

Number to Insert Notepad++

Steps:

  1. Open a file or be on the tab where you want to insert line numbers,
  2. Be at the start of the line from where you want to prefix line numbers (advance: better to do a Multi-Column Select),
  3. Go to Menu: Edit -> Column Editor,
  4. Select: Number to Insert
  5. Add: Initial number: 1
  6. Add: Increase by:
  7. Select Leading zeros if you want them.
  8. Click OK
Before:
A
B
C
D
E
F
G
H
I
J
K
After:
01 A
02 B
03 C
04 D
05 E
06 F
07 G
08 H
09 I
10 J
11 K

This is not an AI-generated article but is demonstrated by a human on a Windows 11 device.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org



















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap