code reformat option for long strings?
In Aurora, is there a code reformat option that will take a long string and break it into multilines using "" + ""? e.g. I have:
String longStr = "a very long and annoying string that could change in the future so i don't want to reformat by hand."
And break it into:
"a very long and"
+ "annoying string" // etc
Please sign in to leave a comment.
I believe all you have to do is hit enter in the string where you'd like it to break and IDEA will take care of the rest for you.
That's my problem: I want to type a long string, then have IDEA reformat it for me. I don't want to waste my time hitting enter at the places I think a line break should go.
Eclipse has this feature.
"Velshin Calreh" <no_mail@jetbrains.com> wrote in message
news:23109790.1075764644464.JavaMail.itn@is.intellij.net...
it for me. I don't want to waste my time hitting enter at the places I think
a line break should go.
>
Same here, I need to reformat long lines (not only Strings) so they would
fit 80 characters -- it is our coding standard. I hate to do it by hand or
in JBuilder :)
Can't you use "reformat code" to do this?
Nick.
Michael Jouravlev wrote:
>>That's my problem: I want to type a long string, then have IDEA reformat
>>Eclipse has this feature.
I have issues with the reformat code when I have broken it. Try the
toString plugin for an example. None of these are reformatted correctly.
--
Norris Shelton
Sun Certified Java Programmer
"Nick Atkins" <natkins@slippytoad.com> wrote in message
news:bvn7th$t6s$1@is.intellij.net...
>
>
think
would
or
Reformat code does not handle the long string case. I suspect there are other limitations as well.