Wrap lines automatically at 120 character margin

Problem: bisq-network/style#3 indicates code should be wrapped at 120
characters, but it is likely that people will forget and that this habit
will only change slowly.

Solution: Configure IDEA to wrap lines automatically when typing past
120 characters, forcing the reminder to happen in real time. If this
becomes a nuisance, we can remove it later.

Note that this change also explicitly sets the RIGHT_MARGIN value to
120, even though this is already IDEA's default value. This is simply
to be explicit and self-documenting.
This commit is contained in:
Chris Beams 2018-03-16 11:40:33 +01:00
parent 35231e2ade
commit 8f25bf3170
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73

View file

@ -171,7 +171,9 @@
<option name="KEEP_BLANK_LINES" value="true" /> <option name="KEEP_BLANK_LINES" value="true" />
</Properties> </Properties>
<codeStyleSettings language="JAVA"> <codeStyleSettings language="JAVA">
<option name="RIGHT_MARGIN" value="120" />
<option name="BLANK_LINES_BEFORE_PACKAGE" value="1" /> <option name="BLANK_LINES_BEFORE_PACKAGE" value="1" />
<option name="WRAP_ON_TYPING" value="1" />
</codeStyleSettings> </codeStyleSettings>
</code_scheme> </code_scheme>
</component> </component>