Insert Formatted Strings into Your Java Code
Are you tired of quoting when inserting formatted text as a String value in to your Java source code?
Let's have a look at this gadget, Clipboard Modificator.
Example:
<Message>
Hello world
</Message>
In Java code as a String value:
String xmlMessage =
"<Message>\n"+
" Hello world \n"+
"</Message>";
It isa free plugin to the NetBeans IDE and its called Clipboard Modificator.
Latest version can do the both ways, and even lets you to specify your own regular expression.See more informations on:
(2 votes)
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)





Comments
Senthil Balakrishnan replied on Thu, 2010/06/03 - 6:52am
In my experience it takes more time than it look to be. Should be a good feature for developers.
Thanks,
Sen
Cristian Vasile... replied on Thu, 2010/06/03 - 1:24pm
Erik Clairiot replied on Thu, 2010/06/03 - 3:37pm
Chmouel Boudjnah replied on Thu, 2010/06/03 - 6:31pm
in response to:
Erik Clairiot
Gervais Blaise replied on Fri, 2010/06/04 - 2:17am
in response to:
Erik Clairiot
Daniel Kec replied on Fri, 2010/06/04 - 5:39am
in response to:
Cristian Vasile Mocanu
Erik Clairiot replied on Fri, 2010/07/02 - 3:17pm
in response to:
Chmouel Boudjnah
Sorry, I didn't check this post again.
For Eclipse configuration :
- preferences -> Java -> Editor -> Typing -> Escape text when pasting into literals