Skip to content

Commit dece2b4

Browse files
cmaglieFederico Fissore
authored and
Federico Fissore
committed
Update eclipse java-formatter settings
1 parent 14a3dde commit dece2b4

File tree

3 files changed

+69
-13
lines changed

3 files changed

+69
-13
lines changed

.settings/org.eclipse.jdt.core.prefs

+35-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
#Sat Dec 31 13:42:35 CET 2011
21
eclipse.preferences.version=1
32
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
43
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
4+
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
55
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
6-
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=18
6+
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
77
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=18
88
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
99
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
10-
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
10+
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=18
1111
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
12-
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
13-
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=16
12+
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=82
13+
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
1414
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
15+
org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
1516
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
1617
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=18
1718
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=18
19+
org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
1820
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
1921
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
2022
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
2123
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
2224
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
2325
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
26+
org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
2427
org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
2528
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
2629
org.eclipse.jdt.core.formatter.blank_lines_before_field=0
@@ -40,6 +43,7 @@ org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
4043
org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
4144
org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
4245
org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
46+
org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
4347
org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
4448
org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
4549
org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
@@ -56,10 +60,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
5660
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
5761
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
5862
org.eclipse.jdt.core.formatter.comment.line_length=80
63+
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
64+
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
65+
org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
5966
org.eclipse.jdt.core.formatter.compact_else_if=true
6067
org.eclipse.jdt.core.formatter.continuation_indentation=2
6168
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
69+
org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
70+
org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
6271
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
72+
org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
6373
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
6474
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
6575
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
@@ -70,11 +80,18 @@ org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
7080
org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
7181
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
7282
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
73-
org.eclipse.jdt.core.formatter.indentation.size=4
83+
org.eclipse.jdt.core.formatter.indentation.size=2
84+
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert
85+
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
7486
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
7587
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
76-
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
88+
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
89+
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
90+
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=insert
91+
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
92+
org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
7793
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
94+
org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
7895
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
7996
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
8097
org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
@@ -122,6 +139,7 @@ org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=inser
122139
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
123140
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
124141
org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
142+
org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
125143
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
126144
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
127145
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
@@ -140,12 +158,14 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invoca
140158
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
141159
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
142160
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
161+
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
143162
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
144163
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
145164
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
146165
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
147166
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
148167
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
168+
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
149169
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
150170
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
151171
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
@@ -169,6 +189,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invoc
169189
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
170190
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
171191
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
192+
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
172193
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
173194
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
174195
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
@@ -196,6 +217,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do n
196217
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
197218
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
198219
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
220+
org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
199221
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
200222
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
201223
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
@@ -224,6 +246,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invoc
224246
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
225247
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
226248
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
249+
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
227250
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
228251
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
229252
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
@@ -233,6 +256,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=inser
233256
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
234257
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
235258
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
259+
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
236260
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
237261
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
238262
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
@@ -256,5 +280,8 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
256280
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
257281
org.eclipse.jdt.core.formatter.tabulation.char=space
258282
org.eclipse.jdt.core.formatter.tabulation.size=2
283+
org.eclipse.jdt.core.formatter.use_on_off_tags=false
259284
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
260-
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=false
285+
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
286+
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
287+
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true

0 commit comments

Comments
 (0)