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

6 comments

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.

0

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.

0


"Velshin Calreh" <no_mail@jetbrains.com> wrote in message
news:23109790.1075764644464.JavaMail.itn@is.intellij.net...

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.


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 :)


0

Can't you use "reformat code" to do this?

Nick.

Michael Jouravlev wrote:

"Velshin Calreh" <no_mail@jetbrains.com> wrote in message
news:23109790.1075764644464.JavaMail.itn@is.intellij.net...

>>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.


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 :)

0

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...

Can't you use "reformat code" to do this?

>

Nick.

>

Michael Jouravlev wrote:

"Velshin Calreh" <no_mail@jetbrains.com> wrote in message
news:23109790.1075764644464.JavaMail.itn@is.intellij.net...

>
>>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.
>
>

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 :)

>
>



0

Reformat code does not handle the long string case. I suspect there are other limitations as well.

0

Please sign in to leave a comment.