Repeat action / macro x times?

I'm looking for a way to repeat an action (including macro playback) x # of times.
It's a relatively common & very useful feature, but I can't seem to locate it in PhpStorm.

For example, in emacs, the keystroke is Ctrl+u X <action>, where X is the # of repeats, and <action> is another keystroke or macro execution.

Is something like this available? Thanks!

9
5 comments
Avatar
Permanently deleted user

Bump, is there some way to do this?

0

can this be prioritized?

0

This is a feature that I use frequently in Emacs. Sadly, not available in JetBrains IDEs.

 

0

In emacs it is possible to record a macro: (find string img=check, go to end of line, search back to ">, insert the text alt=checkmark, go to next line) and then repeat that macro until the find in the beginning failed. This made repeated edits much easier. In Jetbrains I would find all occurrences and then could set multiple cursors, but if the structure of the line is different this would fail. and I don't know how to set the multiple cursors without threading the mouse into each found string

0

Please sign in to leave a comment.