activemq-artemis/docs/hacking-guide/en/formatting.md

24 lines
962 B
Markdown
Raw Normal View History

2015-05-13 13:49:42 -04:00
# Code Formatting
## Eclipse
2015-05-13 13:49:42 -04:00
Eclipse code formatting and (basic) project configuration files can be found at the `etc/` folder. You should manually
copy them _after importing all your projects_:
for settings_dir in `find . -type d -name .settings`; do
2016-10-01 03:31:44 -04:00
\cp -v etc/ide-settings/eclipse/org.eclipse.jdt.* $settings_dir
2015-05-13 13:49:42 -04:00
done
Do not use the [maven-eclipse-plugin](https://maven.apache.org/plugins/maven-eclipse-plugin/) to copy the files as it
2016-09-29 17:07:38 -04:00
conflicts with [m2e](http://eclipse.org/m2e/).
## IDEA
2016-09-29 17:07:38 -04:00
If you completed the step described on [idea instructions](ide.md#style-templates-and-inspection-settings-for-idea), and selected the code style accordingly you should be ready to go.
## EditorConfig
For editors supporting [EditorConfig](http://editorconfig.org/), a settings file is provided in
etc/ide-settings/editorconfig.ini. Copy it to your Artemis top level directory and
[name it .editorconfig](http://editorconfig.org/#file-location)