File>Setting>Editor>Live Templates

先添加个分组。相关代码段放到一个组里,名字要见名知意3。

然后在创建Live Template.

IDEA自定义代码块

如下:

IDEA自定义代码块

 

相关文章:

  • 2021-07-01
  • 2021-09-26
  • 2021-09-09
  • 2021-10-05
  • 2021-06-27
  • 2022-12-23
猜你喜欢
  • 2021-06-07
  • 2022-12-23
  • 2021-10-02
  • 2021-08-24
  • 2021-12-08
  • 2022-01-10
  • 2021-08-19
相关资源
相似解决方案