1. 打开preferences,找到Java > Editor > Templates。
Eclipse设置模板代码
2. 点击"New",新建一个模版:
Eclipse设置模板代码

3. 打开Java文件,输入模版名称的前面两个字母xs,然后按ALT+/,就可以看到模版提示:
Eclipse设置模板代码

相关文章:

  • 2021-06-28
  • 2022-03-06
  • 2021-10-17
  • 2021-11-26
  • 2021-07-14
猜你喜欢
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2021-08-01
  • 2021-05-13
  • 2021-05-21
  • 2021-10-16
相关资源
相似解决方案