Reputation: 19918
Is there a way to configure such a thing in eclipse java?
Upvotes: 0
Views: 293
Reputation: 41
I don't think this is possible. I've been looking for this for a while (but for C). I want the code to look like this for wrapped lines:
/*
* Parameters
*/
class Example {
void foo(int arg1, int arg2,
int arg3, int arg4,
int arg5, int arg6) {
}
};
However, Eclipse only allows you to specify the number of tabs to use, not whether to use tabs or spaces. The place I've been looking is in the Preferences under C/C++ > Code Style > Formatter > Edit Format button.
Update: This is doable, but the settings are a pain and it won't appear quite correctly on the screen. It will write the file properly however. Here we go:
Word of warning: I have no idea how this might affect other indentation settings elsewhere in the Code Formatter preferences.
Upvotes: 0
Reputation: 691735
I think what you're looking for is Window - Preferences - Java - Code Style - Formatter - Edit... - Line Wrapping - Default indentation for wrapped lines.
Upvotes: 1