Skip to content

Code formatting rules for OpenMRS core and module developers who use IntelliJ IDEA

License

Notifications You must be signed in to change notification settings

suniala/openmrs-code-style-idea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openmrs-code-style-idea

Code style scheme for OpenMRS core and module developers who use IntelliJ IDEA. The scheme has two goals:

  • Java code formatting rules that follow the OpenMRS rules defined at OpenMRS Docs and, more specifically, by the formatting rules packaged in openmrs-tools

  • Java and XML formatting rules that match, where the aforementioned rules do not say otherwise, the default rules used by Eclipse

Compatibility

The code style scheme file has been verified to work on:

  • IDEA 14

  • IDEA 15

Using the scheme

Importing the scheme set into IDEA is as simple as:

  1. Copy the file openmrs-code-style-idea.xml under <INTELLIJ_HOME>/config/codestyles/

  2. Start/restart IDEA

  3. Go to: Settings > Editor > Code Style

  4. Select "openmrs-code-style-idea" from the Scheme drop down

Hints

On OSX you might find the codestyles folder at ~/Library/Preferences/IntelliJIdea15/codestyles

Contributing

Pull requests and bug reports are welcome!

About

Code formatting rules for OpenMRS core and module developers who use IntelliJ IDEA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published