+5
Our code-style requires that we break our lines according to Java standards
to keep them within 80 columns. I have to do that manually now and although
IDEA does indent split lines correctly most of the time, there are a few
cases where it doesn't:
1. Splitting string:
Before (cursor at |):
System.out.println("Foo bar |blog");
After inserting a double-quote and pressing Enter:
System.out.println("Foo bar "
blog");
What it should be (line continuation indented):
System.out.println("Foo bar "
blog");
Would be nice:
System.out.println("Foo bar "
+ "blog");
2. Pressing enter at end of unterminated statement:
Before (cursor at |):
return System.getProperty("foo", null)|
After pressing Enter:
return System.getProperty("foo", null)
|
What it should be (line continuation indented):
return System.getProperty("foo", null)
|
And so on. There are other cases similar to this.
Ciao,
Gordon
"Arvid H�lsebus" <[EMAIL PROTECTED]> wrote in message
adj7bc$lu9$[EMAIL PROTECTED]">news:adj7bc$lu9$[EMAIL PROTECTED]...
> Hello,
> is there a way to wrap code lines with respect to the 'Editor|Right
margin'
> (or some other means to provide a maximal line length) while reformatting.
I
> played around with 'Code Style|Line breaks', which resulted in the
complete
> opposite to what I tried to achieve.
>
> Thanks in advance,
> Arvid
>
>
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features