lypdarling
V2EX  ›  问与答

怎么阻止 IDEA 在保存时自动格式化代码

  •  
  •   lypdarling · May 10, 2024 · 1986 views
    This topic created in 914 days ago, the information mentioned may be changed or developed.

    IDEA 版本是 2024.1.1 ,常写 js 和 go ,之前旧版本就存在在保存时会自动格式化代码的问题,貌似 google 了下解决了,现在更新到新版本了,貌似失效了,google 了很久也没找到解决方案。

    非常困扰,希望大神们能指条明路,谢谢

    3 replies  •  2024-05-10 11:37:44 +08:00
    Quanuanc
    Quanuanc
    May 10, 2024
    2
    Settings > Tools > Actions on Save 这里看一下?
    cvbnt
    cvbnt
    May 10, 2024
    3
    我已经肌肉记忆 ctrl alt L 了,git 提交时也可以设置自动格式化
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2389 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:36 · PVG 20:36 · LAX 04:36 · JFK 07:36
    ♥ Do have faith in what you're doing.