1.在IDEA》Settings》Keymap 里面,搜索关键字“format code”

2.找到格式化代码的快捷键 :Ctrl+Alt+L (注意这里是大写的L)

3.打开需要格式化的js代码,输入快捷键组合,js代码就会被格式化了

IDEA格式化js代码IDEA格式化js代码

IDEA格式化js代码

IDEA格式化js代码

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-01-29
  • 2021-04-04
  • 2021-06-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
相关资源
相似解决方案