How To Insert Incrementing Numbers with words by Multicursor in jetbrains IDE(IntelliJ IDEA)?

后端 未结 5 1037
既然无缘
既然无缘 2021-02-03 21:53

I want to add Incrementing Numbers with words by Multicursor in jetbrains IDE(IntelliJ IDEA) .

Is there any way to do it by Live template? I want to do things like this

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-03 22:15

    I thought the String Manipulation plugin was broke, but it was just because I didn't get things set up correctly. I guess I thought it was automagical.

    Make sure that you have a "0" for each string/line that you'd like to increment.

    Try copying this HTML and pasting it into your JetBrains IDE:

    
    

    Select everything between the tags...

    And use the shortcut ⌥M (or search everywhere with ⇧⇧) and use Repeat - Create Sequence.

提交回复
热议问题