All Questions
Tagged with code-standards code-formatting
5 questions
0
votes
1
answer
102
views
Coding standards / formatting
I'm often modifying code that was written by others. I've seen a lot of code formatting standards and I'm a bit confused what I should do. Should I always stick to my own standard or adjust my ...
24
votes
3
answers
37k
views
How to customize Eclipse's text editor code formatting
How can I set my Eclipse's code formatter to allow code rows longer than 80 characters. I know that very long lines is hard to read but in my opinion 80 characters per line is very small value for ...
28
votes
5
answers
58k
views
How do I modify Eclipse code formatting?
When I reformat code with Eclipse, it turns method headers like this:
public void myMethod(String param) {
into method headers like this:
public void myMethod(
String param) {
...
15
votes
1
answer
18k
views
How do I configure autoformatting in Eclipse?
I dislike how auto format messes up empty cycle body, like:
Before
for (int i = 0; isTest(i); i++);
After
for (int i = 0; isTest(i); i++)
;
How to configure eclipse not to do this?
141
votes
4
answers
83k
views
Eclipse: Can you format code on save?
In Eclipse, under Windows -> Preference -> Java -> Code Style, you can define code templates for comments and code, and you can setup a code formatter.
I'm wondering if it is possible in Eclipse to ...