IntelliJ IDEA comes with a powerful code formatter that helps you to keep the formatting consistent with the style JabRef uses. Style-checks are done for each pull request and installing this cody style configuration helps you to ensure that this test passes. To install it, you need to do the following steps:
- Goto Preferences or press Ctrl + Alt + S (Cmd + , on Mac OS X)
- Go to "Editor > Code Style"
- Click the gear (right of "Scheme: ...")
- Click "Import Scheme >"
- Choose
IntelliJ IDEA code style XML
- Select the file
config\IntelliJ Code Style.xml
- Press "OK"
- Press "OK"
- Press "Close"
- Press "OK"
- Please let
.editorconfig
override the settings of IntelliJ
The Eclipse code formatter style is stored in the eclipse.gradle
file and gets imported automatically.
In case the formatter style needs to be adapted, configure it and export in in eclipse.
- Right click on the eclipse project "JabRef"
- Select "Export > General > Preferences"
- Select "Java Code Style preferences"
- Choose output file
- Compare the formatter settings in the epf file with the ones in the eclipse.gradle file (
org.eclipse.jdt.core.formatter.
) - Replace the Eclipse Code Style.epf with the exported epf file