如何在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
相关产品推荐
相关产品推荐

