How to edit comment template and add type or function comment in JetBrains IntelliJ IDEA?

comments, intellij-idea, java, templates

Solution

Type comments you can edit in menu `File -> Settings -> File Templates`. Then you look to tab `Includes` and edit entry `File Header`

Method comments isn't possible to edit, I think.

Problem

In JetBrains IntelliJ IDEA, I would like to edit comment which is like ``` /** * Created by IntelliJ IDEA.<br/> * User: ${USER}<br/> * Date: ${DATE}<br/> * Time: ${TIME}<br/> * To change this template use File | Settings | File Templates. */ ``` and generate comment for a type like ``` public class MyUsernamePasswordAuthenticationFilter extends UsernamePasswordAuthenticationFilter ``` or a function like ``` protected void checkUsbKeyID(UserObj user,String usbKeyID) ```

Original source