简体   繁体   English

如何仅在Intellij中禁用XML的右边距?

[英]How to disable right margin only for xml in Intellij?

I'm using Intellij 2017.3 Community Edition. 我正在使用Intellij 2017.3 Community Edition。 I need to disable right margin only for XML and enable it for java. 我只需要为XML禁用右边距,然后为Java启用它。 In Settings/Editor/Code Style, there is Hard Wrap option. 在设置/编辑器/代码样式中,有硬包装选项。 If I remove this, then right margin will be disable for java also right? 如果我删除了此选项,那么右边距将对Java禁用,对吗? I don't want that to happen. 我不希望那样发生。 I want Intellij to format java files for Right margin but not XML files. 我希望Intellij格式化Java文件的右边距格式,而不是XML文件格式。 There is no option to disable Right Margin under Settings/Editor/Code Style/XML. 在“设置” /“编辑器” /“代码样式” /“ XML”下没有禁用“右页边距”选项。 How to achieve this? 如何实现呢?

How to configure right margin for editor in IntelliJ on per project basis Do you see the individual languages under code style? 如何根据项目在IntelliJ中为编辑器配置页边空白您是否看到代码样式下的各个语言? For me I see iot under XML->Other->Right margin 对我来说,我在XML-> Other-> Right margin下看到了物联网

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM