This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust formatter to include examples and use custom profile
Custom format settings: - EOL: LF - don't adjust line wrapping when already wrapped - use tabs and set indendation to 4
- Loading branch information
1 parent
680d856
commit 9b07859
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<profiles version="15"> | ||
<profile kind="CodeFormatterProfile" name="Custom Project Formatter" version="15"> | ||
<!-- this setting is needed for join_wrapped_lines to work, see: | ||
https://github.com/revelc/formatter-maven-plugin/issues/289#issuecomment-475023352 --> | ||
<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="16"/> | ||
<setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="false"/> | ||
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="tab"/> | ||
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/> | ||
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> | ||
<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/> | ||
</profile> | ||
</profiles> |