How can you automatically surround text with other text?

In the editor I would like to have a shortcut to automatically surround a word (at the current caret position) or selected text with some text that I can define.

For example I would like to be able to highlight some text and surround it with {@code}{@code}

I'm using 11.1.4 Ultimate.

Thanks,

-Noah

2 comments
Comment actions Permalink

Hello,

There is no built-in action that does that. However, you can try to create a macros, bind it to a hotkey and use as an action.

Denis

0
Comment actions Permalink

You can define you own Live Template to do that and invoke it with ctrl-alt-t.
live.PNG

0

Please sign in to leave a comment.