QtCreator add custom templates Comment

1 Introduction

In different IDE compiler, clear Introduction Note will help the reader understand the program, the source code writers in a custom annotation time can be defined according to their preferences comment, but it must be accurate, Profile, clear, easy to understand as in the comment Python's
Here Insert Picture Description
clear comments about the need to meet several requirements

  • Creation date
  • Author
  • Features
  • surroundings
  • Copyright statement

Different compiler in a custom annotation when the same has a similar approach, this article will summarize ways to customize the template comments in the Qt Creator

2. Environment

In this paper, we summarized in the following environment

  • win10 Pro
  • Qt5.11
  • Qt Creator4.7.1 MinGw32bit

3. Configuration

1) Simple Configuration

Qt Creator open the Tools menu bar on, as follows

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

2) effect

Here Insert Picture Description

3) Detailed Configuration

Here Insert Picture Description

4) Other Configuration

Using this method, you can implement your own comments on the project, even with this simple proof way to declare a function to annotate and easier to read

Here Insert Picture Description

4. end

Links to other reference configurations

Published 45 original articles · won praise 7 · views 9515

Guess you like

Origin blog.csdn.net/qq_41488943/article/details/104995305