How to set max line length rules in view? (not linting)
I am using Webstorm 7 and want to set a max line length in the view to be 80 and not 120 (as the default ruler is set to).
I've searched all over and the closest I can find is the JSLinter (https://www.jetbrains.com/webstorm/webhelp/jslint.html) but I cannot seem to see how to actually change the ruler in the IDE.
Question: How do I set the ruler for the line length in Webstorm 7?
Solution 1:
Settings > Editor > Code style > Hard wrap at [...] columns (default is 120)
Solution 2:
Quite late to the party and wrong version of Webstorm. But I got sent here by Google and in latest Webstorm (version 10) this option has been moved to Preferences > Editor > Code style - Right margin (columns).
Hope it helps someone.
Solution 3:
The location to set the line length changed again.
March 2018 - PHPStorm 2017.3:
Update: Still valid in 2021 for PhpStorm 2021.2.2:
Settings > Editor > Code style - Hard wrap at || Visual guides
If the ruler doesn't show up at all, check that it is enabled:
Settings > Editor > General > Appearance - Show hard wrap guide