How do I get this formatting to work properly
Beginning with
My rules say that anything that goes past the right margin must wrap.
This leads to:
If I add my own linefeed (manually) before "createExpression...." then formatting the text does not change it, and it looks like:
How do I make the formatter generate this formatting given the original input.
请先登录再写评论。
Hi Jon,
Please try the following:
Denis
Thanks Dennis, I think this might be a bug here is a before and after with the settings you gave. See how the slightly longer line has an issue with the comma ending up on its own line.
formats to:
Please attach exact file that contains target code snippet and your code style settings (the settings are stored at *.xml file with the corresponding name under '$IDEA_CONFIG_HOME/config/codestyles' directory. IDEA_CONFIG_HOME is defined at 'idea.config.path' property from '$IDEA_HOME/bin/idea.properties' file).
Denis
I have attached the settings and the source file. The code is around line 163.
I tried this on both 10.0.3 and 106.491
Attachment(s):
UnbalancedAssignmentInspection.java.zip
Default _1_.xml
Thanks for providing the info!
There is a bug at formatter that will be fixed at the next 10.5 EAP. Feel free to track the progress of IDEA-68348.
Denis