Eclipse中設置註釋模板的方法

打開Eclipse 菜單欄點擊Window 點擊Preferences,搜索框輸入「template」 點擊Code Template --> Comments -->Methods 點擊右側的Edit,在Pattern中寫入要設置的模板,點擊OK --> Apply and Close 光標定位到方法內部,使用快捷鍵Alt + Shift + j,使用剛剛添加的模板爲方法添加註釋,效果如圖
相關文章
相關標籤/搜索