您的位置: 首页 > 文章 > Eclipse中设置注释模板的方法 Eclipse中设置注释模板的方法 分类: 文章 • 2023-03-23 08:52:07 打开Eclipse 菜单栏点击Window 点击Preferences,搜索框输入“template” 点击Code Template --> Comments -->Methods 点击右侧的Edit,在Pattern中写入要设置的模板,点击OK --> Apply and Close 光标定位到方法内部,使用快捷键Alt + Shift + j,使用刚刚添加的模板为方法添加注释,效果如图