Skip to content

Instructions and IDE configuration files for Eclipse, IDEA, and NetBeans

Notifications You must be signed in to change notification settings

project-ncl/ide-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

JBoss Community IDE Configuration Files

The directories below contain instructions, and IDE configuration files for eclipse, IDEA, and NetBeans. See below for additional information.

IDE Agnostic Conventions

Formatting Java Files

  • JavaDoc parameter information is on the same line, not indented
  • Line length is 120 characters
  • Spaces are used instead of tabs
  • Indentation size is 4
  • Switch blocks are indented

Formatting Other Files

  • Line length is 120 characters
  • Spaces are used instead of tabs
  • Indentation size is 4

Projects following these conventions

If your JBoss project follows these conventions, fork and edit this file and add your project.

Intellij setup with the eclipse formatter xml

  1. On Intellij, install the 'Eclipse Code Formatter' plugin
  2. Restart Intellij for the plugin to be installed
  3. Click on File -> Settings -> Other Settings -> Eclipse Code Formatter
  4. Select 'Use the Eclipse Code Formatter' option on the top
  5. On the 'Eclipse Java Formatter config file' section, specify the path to the eclipse formatter xml file (ide-config/eclipse/jboss-java-formatter.xml)
  6. Finally, click 'OK'. When formatting your code, it'll format according to the recommened codestyle now

PS: we are not using the built-in Intellij 'Eclipse import Java codestyle' since it is lacking in a lot of places and the formatting is not a good representation of what we have in Eclipse.

About

Instructions and IDE configuration files for Eclipse, IDEA, and NetBeans

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published