如何在每个项目的基础上为IntelliJ中的编辑器配置右边距 [英] How to configure right margin for editor in IntelliJ on per project basis

查看:193
本文介绍了如何在每个项目的基础上为IntelliJ中的编辑器配置右边距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在每个项目的基础上配置右边距(列)(在代码样式 - >常规下)?

Is there a way to configure the Right Margin (columns) (under Code Style -> General) on a per project basis?

OR / AND是否有在每种语言的基础上配置相同值的方法。例如,我希望我的Java代码以90列结束,但我的HTML结束于120。

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.

谢谢!

推荐答案

您可以使用编辑器 - >代码样式 - > - >环绕和大括号下的每种语言设置覆盖全局设置。示例:

You can override the global setting with a per-language settings under Editor -> Code Style -> -> Wrapping and Braces. Example:

这篇关于如何在每个项目的基础上为IntelliJ中的编辑器配置右边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆