Auto comments in Doctype

Which file is used to auto comment in Doctypes? please help me on this.

What do you mean by auto-comment? Can you give an example?

Like shown in the picture.

The comments add according to the workflow right? but if we want to add the comments according to our needs which python file to access?