Exclude right margin setting from reformatter?

I love to have the right margin visual indicator at column 80. I've disabled "Wrap on typing", but this does not affect the reformatter: it automatically breaks on lines longer then "right margin".

However I've too many code constructs I don't want to have been reformatted just by their line length; is there a way to disable this and only have it as a visual indicator?

Comment actions Permalink

What language do you work with? Each language has its own code style options that affect text wrapping. See https://youtrack.jetbrains.com/issue/IDEA-72261#comment=27-1069948

Comment actions Permalink

Using PhpStorm PS-143.434
Build #PS-143.434, built on October 22, 2015
JRE: 1.6.0_65-b14-466.1-11M4716 x86_64
JVM: Java HotSpot(TM) 64-Bit Server VM by Apple Inc.

I'm not sure if this references issue applies? It taslks about per file margin or language specific right margin.

My goal is to have the right margin just being a visual guide, not influencing any formatting.


Comment actions Permalink

this issue is about enabling 'wrap on typing' for each language separately.
there are many options that control wrapping on formatting - wrapping style (Do not wrap,Wrap if long, Chop down if long,Wrap always, where 'long' means exceeding right margin), 'wrap at right margin' for comments, etc. So you need to make sure to set them all up in appropriate way for each language

Comment actions Permalink

Thanks I found it, it was "Code Style / PHP / Wrapping and Braces / Function declaration parameters: Chop down if long" was causing this.


Please sign in to leave a comment.