像 Resharper 这样的 IntelliJ IDEA 复杂代码清理?
IntelliJ IDEA complex code cleanup like Resharper?
IntelliJ IDEA 中是否有类似于 Code Cleanup 来自 Resharper 的东西?对您的代码运行所有不同优化的东西。 (从 C# 切换到 Java)
Intellij 可以重新格式化您的代码:
https://www.jetbrains.com/help/idea/2016.2/reformatting-source-code.html
更多 advanced/customized 格式看这里:
https://www.jetbrains.com/help/idea/2016.2/configuring-code-style.html
在旧的 IntelliJ IDEA 14 EAP there is automatic "Code cleanup" 功能中。它位于 Analyse → Code Cleanup 菜单中。
在最新版本的IDEA(如2016)中有Analyse → Inspect Code and Code → Optimize Imports 特性。
IntelliJ IDEA 中是否有类似于 Code Cleanup 来自 Resharper 的东西?对您的代码运行所有不同优化的东西。 (从 C# 切换到 Java)
Intellij 可以重新格式化您的代码:
https://www.jetbrains.com/help/idea/2016.2/reformatting-source-code.html
更多 advanced/customized 格式看这里:
https://www.jetbrains.com/help/idea/2016.2/configuring-code-style.html
在旧的 IntelliJ IDEA 14 EAP there is automatic "Code cleanup" 功能中。它位于 Analyse → Code Cleanup 菜单中。
在最新版本的IDEA(如2016)中有Analyse → Inspect Code and Code → Optimize Imports 特性。