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 image :
Select multiple words or text ranges While Alt+Shift+Click will add a new caret, double-clicking words or dragging the mouse over text ranges (keeping the same keys pressed) will add new carets with the corresponding selections.
You can use ⌃⌘G (macOS), or Ctrl+Alt+Shift+J to select all matching words in the document rather than selecting one at a time. You can use ⌃⇧G (macOS), or Alt+Shift+J (Windows/Linux) to remove the selection from the last selected occurrence.
Select all occurrences: Ctrl+Cmd+G / Shift+Ctrl+Alt+J. To add or remove multiple carets, you can also press and hold the Alt key, then click at the next location of the caret. Alternatively, to add multiple carets, you can press Alt/Ctrl twice, and then without releasing it, press the Up or Down arrow keys.
You could use String Manipulation plugin to do that (Increment/Decrement | Increment duplicates
or Create sequence
).
The plugin is not working on my WebStorm, there could be another way using unix command line:
seq 1 10 | xargs printf 'string%d\n'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With