Skip to content
MewixMewix

Line numbers

Add 1. 2. 3. prefixes to each line for code review notes, or strip existing numbering before editing elsewhere.

Updated by the Mewix team

Number lines for code review comments

Reviewers reference “line 42” when discussing patches. Add mode prefixes each row with {n}. starting at 1, using the same line breaks as your paste. Share the numbered excerpt in email or chat without opening an IDE.

Remove line numbers before re-editing

Strip mode removes a leading pattern of optional whitespace, digits, then., :, ), or ], plus an optional space — so 12. foo and 12) foo both become foo. It will not renumber middle columns; only leading markers per line.

Questions

Does add mode skip blank lines?

Empty lines still receive the next index — numbering follows physical rows, including blanks.