User:BSitzmann (WMF)/IntelliJ Settings

Here I'd like to document some of my IntelliJ settings I used for developing JavaScript/Node.js, esp. for the RESTBase based Mobile Content Service. I run this on a Mac but it should be easy to translate the settings for other Operating Systems.

To open the settings press  and.

Editor / Code Style
Set  to 100.

JavaScript

 * Tabs and Indents: uncheck
 * Wrapping and Braces:
 * Binary expressions:  and check
 * Assignment statement:  and check

Version Control

 * Check  and leave the value after that at 72. This will also change the font for the commit message to one in the monospace font-family.
 * I suggest to also check the next checkbox.

Debug configuration for MCS and other Node services using Service runner

 * When creating a Run/Debug configuration for starting a Node.js projects based on our Services' team's node template use the Node.js setting and change the entry for  file from   to  . Server.js starts Service runner.
 * The other requirement for this to work is that in the active config.yaml file  is set to , so that everything runs in the same process. This is usually the default for the   for projects using the template. One exception is the RESTBase code itself. But you can simply add a line to the beginning of the   file like: