1+ <?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2+ <profiles version =" 21" >
3+ <profile kind =" CodeFormatterProfile" name =" DemoJavaStyle" version =" 21" >
4+ <!-- SPACES ONLY - 4 Spaces für Java -->
5+ <setting id =" org.eclipse.jdt.core.formatter.tabulation.char" value =" space" />
6+ <setting id =" org.eclipse.jdt.core.formatter.tabulation.size" value =" 4" />
7+ <setting id =" org.eclipse.jdt.core.formatter.indentation.size" value =" 4" />
8+ <setting id =" org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value =" false" />
9+
10+ <!-- Zeilen-Länge -->
11+ <setting id =" org.eclipse.jdt.core.formatter.lineSplit" value =" 120" />
12+ <setting id =" org.eclipse.jdt.core.formatter.comment.line_length" value =" 120" />
13+
14+ <!-- Klammern am Zeilenende (K&R Style) -->
15+ <setting id =" org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value =" end_of_line" />
16+ <setting id =" org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value =" end_of_line" />
17+ <setting id =" org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value =" end_of_line" />
18+ <setting id =" org.eclipse.jdt.core.formatter.brace_position_for_block" value =" end_of_line" />
19+ <setting id =" org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value =" end_of_line" />
20+ <setting id =" org.eclipse.jdt.core.formatter.brace_position_for_switch" value =" end_of_line" />
21+ <setting id =" org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value =" end_of_line" />
22+ <setting id =" org.eclipse.jdt.core.formatter.brace_position_for_lambda_body" value =" end_of_line" />
23+
24+ <!-- Leerzeilen -->
25+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_before_package" value =" 0" />
26+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_after_package" value =" 1" />
27+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_before_imports" value =" 1" />
28+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_after_imports" value =" 1" />
29+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value =" 1" />
30+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value =" 1" />
31+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value =" 0" />
32+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value =" 1" />
33+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value =" 1" />
34+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_before_field" value =" 0" />
35+ <setting id =" org.eclipse.jdt.core.formatter.blank_lines_before_method" value =" 1" />
36+
37+ <!-- Continuation Indentation -->
38+ <setting id =" org.eclipse.jdt.core.formatter.continuation_indentation" value =" 2" />
39+ <setting id =" org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value =" 2" />
40+
41+ <!-- Wrapping -->
42+ <setting id =" org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested" value =" true" />
43+ <setting id =" org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch" value =" true" />
44+
45+ <!-- Spaces -->
46+ <setting id =" org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value =" insert" />
47+ <setting id =" org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value =" insert" />
48+ <setting id =" org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value =" do not insert" />
49+ <setting id =" org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value =" do not insert" />
50+ <setting id =" org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value =" do not insert" />
51+ <setting id =" org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value =" do not insert" />
52+
53+ <!-- New Line -->
54+ <setting id =" org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value =" insert" />
55+ <setting id =" org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value =" insert" />
56+ <setting id =" org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value =" insert" />
57+
58+ <!-- Java 8+ Features -->
59+ <setting id =" org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow" value =" insert" />
60+ <setting id =" org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow" value =" insert" />
61+
62+ <!-- Comments -->
63+ <setting id =" org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value =" true" />
64+ <setting id =" org.eclipse.jdt.core.formatter.comment.format_line_comments" value =" true" />
65+ <setting id =" org.eclipse.jdt.core.formatter.comment.format_block_comments" value =" true" />
66+ </profile >
67+ </profiles >
0 commit comments