在idea里面设置自己的文档注释时获取不到Param和return
这个是使用自己定义的(/** + tap)
这个是用idea自带的(/** + 回车)
如果是idea本身的问题,那为什么使用本身默认的是可以获取得到的呢?
这个是我自定义的配置
/**
* @Param $param$
* @return $returns$
* @description
* @author $user$
* @date $date$ $time$
*/
别人的都是用的这个,为什么我的idea却不行。
要在方法里面用啊,像这样。没有参数和返回类型就不会显示的,除非你设置了返回默认值。
public int add(int a, int b)
{
/**
* @Param [a, b]
* @return int
* @description
* @author test3
* @date 2022/9/6 9:36
*/
System.out.println(a+b);
}