« Volver a Using IntelliJ...

Arranging code with IntelliJ

Etiquetas: intellij productivity

Rearranger is a nice IntelliJ plugin that may help with arranging code according to Liferay development style. It can organize methods, variables constructors... as defined in user rules.

You can download these rules from this link and import them using Configuration tab option (tested on IntelliJ 13 and Rearranger 5.5)

Here is the screenshot of rules list in action:

Rules can be also exported to a file and therefore shared among developers

Once when rule patterns are generated (tab 'General'), you can invoke Rearranger on current file simply by a hotkey or from a quick-menu.

Other settings #

\n// (-{30} FIELDS -{30}|-{26} ((STATIC|OTHER) METHOD|ENUMERATION|INNER CLASSE)S -{26}|-{27} (CONSTRUCTORS|main\(\) method) -{27}|-{21} (GETTER / SETTER METHODS|Interface [A-Za-z0-9_]+) -{21}|-{24} (CANONICAL|INTERFACE) METHODS -{24})\n

On Spacing and Extracted method tabs everything is unchecked.

4 archivos adjuntos
30570 Accesos
Promedio (0 Votos)
La valoración media es de 0.0 estrellas de 5.
Respuestas anidadas Autor Fecha
Hey Igor Thx for the post. Do you think you... Everest Liu 14 de marzo de 2014 5:50
You can download the settings file from here: ... Jose M. Navarro 14 de marzo de 2014 5:50

Everest Liu
Hey Igor

Thx for the post. Do you think you could provide a settings file so we can adhere to the Liferay standards? Thx
Publicado el día 14/03/14 5:50.
You can download the settings file from here:

Publicado el día 14/03/14 5:50 en respuesta a Everest Liu.