idea 2023.3无法使用save actions

推荐替代方案列表

  1. ✅ 内建的 Actions on Save(无插件)

IDEA 从 2022.1 起就内建了“保存时操作”,其实足以替代大部分 Save Actions 的功能。

路径:

Settings > Tools > Actions on Save

功能勾选推荐:

    ✅ Reformat code

    ✅ Optimize imports

    ✅ Rearrange code

    ✅ Run code cleanup (可选)

适用语言:Java、Kotlin、XML、HTML、JSON 等

    ✅ 无需插件、兼容性好、官方维护

2.editorconfig Support(自带支持,无需插件)

.editorconfig 是一种跨 IDE 的代码风格控制方式。

示例配置:

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4

IDEA 会自动识别并应用这些规则,保持团队统一代码风格。

0

版权声明 ▶ 本网站名称:我的学习笔记
▶ 本文链接:https://ooolo.net/article/626.html
▶ 本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长进行核实删除。
▶ 转载本站文章需要遵守:商业转载请联系站长,非商业转载请注明出处!!!

none
最后修改于:2025年06月11日 09:41

添加新评论

icon_mrgreen.pngicon_neutral.pngicon_twisted.pngicon_arrow.pngicon_eek.pngicon_smile.pngicon_confused.pngicon_cool.pngicon_evil.pngicon_biggrin.pngicon_idea.pngicon_redface.pngicon_razz.pngicon_rolleyes.pngicon_wink.pngicon_cry.pngicon_surprised.pngicon_lol.pngicon_mad.pngicon_sad.pngicon_exclaim.pngicon_question.png