forked from scalar-labs/btm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.xml
More file actions
40 lines (33 loc) · 2.51 KB
/
style.xml
File metadata and controls
40 lines (33 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml -->
<profiles version="13">
<profile kind="CodeFormatterProfile" name="PrettierJavaMinimal" version="13">
<!-- Indentation -->
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<!-- Continuation indentation = 8 spaces (2 × indent) -->
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/>
<!-- Line width -->
<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/>
<!-- ===== ARGUMENT WRAPPING (vertical, JS-style) ===== -->
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="52"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="52"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="52"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="52"/>
<!-- ===== METHOD CHAIN WRAPPING (Prettier-like) ===== -->
<!-- Wrap after the dot, indent under the first call -->
<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="52"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/>
<!-- ===== CONDITIONAL / BINARY EXPRESSION WRAP ===== -->
<setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="52"/>
<!-- Comments -->
<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/>
<!-- Braces: normal Java style (same-line) -->
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/>
</profile>
</profiles>