在 Atom 中使用多个游标时有没有办法增加数字?

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

我发现自己一遍又一遍地这样做。这可能非常耗时。有哪些选项可用?

Increment Selection 包可能就是您要找的。它似乎可以使用多个游标,因此应该非常接近您的用例:

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

现在还有一些其他可用的。增量选择2年没动了

最新最强大的似乎是: https://atom.io/packages/multi-cursor-increment

它可以将事物设置为递增的数字,甚至可以在之后将所有事物向上或向下移动 1。

另一种选择: https://atom.io/packages/increment-me

或者您可以尝试 emmet

{item$$, }*3 将转换为 item01, item02, item03,

P.S。我正在使用 atom.io,不知道它是否适用于 sublime-text 或其他编辑器。