Global Code Style

Hi,

its me again :D. I was looking in the "Global Code Style" options for something that would wrap my variables like:

private final String s1,
s2,
s3,
...
sn;
but I cant??? Am I missing something? I just cant belive that there are no options in this section!

2 comments

I don't think there are options for this. I think it's probably because:

1. Most people discourage you from declaring multiple variables in a single
declaration in Java
2. Your style, a new line for each variable being declared, is confusing
and hard to read

Hi,

its me again :D. I was looking in the "Global Code Style" options for
something that would wrap my variables like:

private final String s1,
s2,
s3,
...
sn;
but I cant??? Am I missing something? I just cant belive that there
are no options in this section!




0

Keith Lea wrote:

1. Most people discourage you from declaring multiple variables in a
single declaration in Java



One case where it's useful, is for classes bound to an UIdesigner form,
to avoid 40 checkboxes, taking 40 lines.
Problem: IDEA would place 40 icons in the gutter.

http://www.intellij.net/servlet/JiveServlet/download/13-62972-658685-2748/gutterIconProblem.png

Alain

0

Please sign in to leave a comment.