1.默认情况下,idea中html的注释是顶格的

IDEA中html注释 不要顶格 设置缩进

 

 

2.如何取消顶格?设置自动空格?

打开设置-code style - html - 取消下图中的两个勾选项

IDEA中html注释 不要顶格 设置缩进

 

 

3.设置后效果如下:

IDEA中html注释 不要顶格 设置缩进

 

相关文章:

  • 2022-03-08
  • 2021-09-14
  • 2021-12-19
  • 2021-10-03
  • 2021-12-15
猜你喜欢
  • 2021-05-18
  • 2021-03-30
  • 2022-12-23
  • 2021-06-15
  • 2021-08-28
  • 2021-12-01
相关资源
相似解决方案