android studio默认代码格式化(默认Ctrl+Alt+L),是让注释从每行最左边开始显示,比如这样:

 

我个人喜欢注释也要缩进对齐。其实这个需要自己设置,打开studio的设置,依次找

Setting->Code Style->Java->Wrapping and Braces->Keep when reformatting->Comment at first column->取消勾选

相关文章:

  • 2021-12-12
  • 2021-08-12
  • 2022-01-17
  • 2021-03-28
  • 2021-09-29
  • 2021-12-31
  • 2021-09-03
  • 2021-12-04
猜你喜欢
  • 2021-06-03
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-06-15
  • 2021-04-26
  • 2022-02-05
相关资源
相似解决方案