1.user()默认获取计算机名,修改为特定名称

在安装目录的/bin下找到idea.exe.vmoptions 和idea64.exe.vmoptions,

在文件的最后(好像也可以不是最后)添加一行:-Duser.name=KSir 

32位的修改idea.exe.vmoptions,64位的修改idea64.exe.vmoptions

2.修改类方法模板

idea设置注释模板

3.1添加一个user模板
3.2输入模板样式

*
 *@author $USER$
 *@Description $description$
 *@Date $time$ $date$
 *@Param $param$
 *@Return $return$
 */
3.3选择模板使用范围

idea设置注释模板

3.4设置变量方法

idea设置注释模板

使用该模板时/**+回车(也可以选择为Tab等)

idea设置注释模板

3.设置行宽

idea设置注释模板



相关文章:

  • 2022-12-23
  • 2021-08-13
  • 2022-01-19
  • 2021-10-01
  • 2021-05-23
  • 2021-05-08
  • 2021-12-06
  • 2021-06-15
猜你喜欢
  • 2021-12-14
  • 2021-10-12
  • 2021-11-02
相关资源
相似解决方案