You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Android Studio Electric Eel及更高版本中显示Kotlin样式问题

新版Android Studio中Kotlin格式化检查项的位置说明

旧版Android Studio中位于Preferences > Editor > Inspections > Kotlin > Style Issues > File is not formatted according to project settings的格式化检查项,在新版中并没有被移除,只是调整了分类位置:

  • 针对Kotlin的单独检查项,现在路径为:Preferences > Editor > Inspections > Kotlin > General > File is not formatted according to project settings
  • 另外,你也可以在全局格式化检查中找到类似功能:Preferences > Editor > Inspections > General > Formatting issues,该选项对所有支持的编程语言生效

你可以按照需求将其设置为警告级别,实现编辑时高亮样式问题的效果,功能和旧版完全一致。

内容的提问来源于stack exchange,提问作者Max

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 10:20:43