Reputation: 1664
in Intellij, I'm looking for a single keystroke method to transform escaped XML to XML and vice versa I've looked at macros with a file find/replace but they are not doing what I need - any suggestions?
e.g.
<Alpha>
<Beta>3030</Beta>
<Beta>3030</Beta>
</Alpha>
TO
<Alpha>
<Beta>3030</Beta>
<Beta>3030</Beta>
</Alpha>
Upvotes: 2
Views: 1280
Reputation: 34776
Take a look at this plugin, it can do what you want and much more in terms of escaping and string manipulation in general.
You can bind some custom shortcut to Escape XML and Unescape XML actions. Or you can hit SHIFT+ALT+M and then 8 to escape or SHIFT+ALT+M and then 9 to unescape by default.
It's probably not the exact solution you're looking for, but hopefully it will help.
Upvotes: 2