问题
Is there a way to configure the Right Margin (columns) (under Code Style -> General) on a per project basis?
OR/AND is there a way to configure that same value on a per language basis. For example, I want my Java code to end at 90 columns, but my HTML to end at 120.
Thanks!
回答1:
You can override the global setting with a per-language settings under Editor -> Code Style -> -> Wrapping and Braces. Example:
来源:https://stackoverflow.com/questions/19424353/how-to-configure-right-margin-for-editor-in-intellij-on-per-project-basis