Is there way (a plugin) for assigning shortcut key to insert custom text?
Answered
I'm looking for a plugin which would allow me to assign a shortcut key that would insert predefined text into the editor.
For example, I'd assign Ctrl+R to insert "return" to text editor.
Is there some tool like this in IDEA?
Thanks.
P.S. I know about autocomplete and text suggestions in the app. But I really want to "press shortcut to enter piece of text".
Please sign in to leave a comment.
You can use a live template, then record a macro to trigger it, than assign a keyboard shortcut to a macro, see https://stackoverflow.com/a/9639266/104891.
Amazing how simple it was, and it works just fine.
Thanks!