Is there a way to increment numbers when using multiple cursors in Atom?

Solution 1:

The Increment Selection package might be what you're looking for. It seems to be working with multiple cursors, so should be pretty close to your use case:

Select a block of text and hit ctrl-shift-i to replace it with incrementing numbers

  • Uses first line's number if any
  • Works with multiple cursors

Increment Selection Demo

Solution 2:

There are a few others available now too. Increment Selection hasn't been touched in 2 years.

Newest and most robust seems to be: https://atom.io/packages/multi-cursor-increment

It can set things to incremental numbers and even move everything up or down by 1 afterwards.

Another option: https://atom.io/packages/increment-me

Solution 3:

or you may try emmet

{item$$, }*3 will transform to item01, item02, item03,

P.S. I am using atom.io, didn't know if it works on sublime-text or other editor.