Eclipse
In
qa/eclipse
you’ll findgoogle-java-format-eclipse-plugin-X.X.X.jar
. Copy that jar file to the Eclipse drop-ins folder to activate the plugin. You have to restart the IDE afterwards.
The plugin adds agoogle-java-format
formatter implementation that can be configured inWindow > Preferences > Java > Code Style > Formatter > Formatter Implementation
. Please activate it.In the same setting window, import
taskana_formatter_eclipse.xml
fromtaskana/qa/eclipse
In
Window > Preferences > Java > Code Style > Organize Imports
import the Taskana import order fromtaskana/qa/eclipse
IntelliJ
Install and activate this plugin. Activation can be found under
File
...
→ Settings
...
→ Other Settings
...
→ google-java-format Settings
. Make sure the “Enable google-java-format”-checkbox is enabled.In
File
...
→ Manage IDE Settings
...
→ Import Settings
import the settings.zip file fromqa/intellij
. Import the templates and the macro.In
Settings
...
→ Editor
...
→ Code Style
...
→ Java -> gear wheel (icon) -> Import Scheme -> IntelliJ IDEA code style XML
importtaskana_formatter_intellij.xml
fromtaskana/qa/intellij
.In
Settings
...
→ Keymap
search for “save all” and bindctrl+s
to the macro, thus overriding the save key. The macro will automatically format the current file and save all files.
Info |
---|
Currently we are evaluating if |
Info |
---|
For other IDEs check out the official GitHub Repository |