繁体   English   中英

我可以在 IDEA IDE 中看到用于重新格式化的规则吗?

[英]Can I see rule used for reformat in IDEA IDE?

有时,当通过 CTRL + ALT + SI 重新格式化代码时,很难找到规则,这就是更改我的代码的原因。 在任何 IDEA IDE 中是否有对此的详细视图?

具体例子:

重新格式化前:

myMethod(){}

重新格式化后:

myMethod(){
}

而且我有点必须搜索所有样式设置。

您可以尝试执行以下操作:

  • Select 一段代码

  • Alt+Enter并单击Adjust code style settings

有关详细信息,请参阅https://www.jetbrains.com/help/idea/reformat-and-rearrange-code.html#reformat_code

暂无
暂无

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

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