Qt Creator 自定义注释及其内部变量
1. 自定义注释
Qt Creator->工具->选项->文本编辑器->片段->添加->触发:header,触发种类:custom,编辑文本内容
/**
1. Copyright(C),2021-%{CurrentDate:yyyy},XXXXXX Co.,Ltd
2. @FileName: %{CurrentDocument:FileName}
3. @Author: XXXX
4. @Version: V1.0
5. @Date: %{CurrentDate:yyyy-MM-dd}
6. @Description:
7. @History:
*/
2. 内部变量整理
%{
#:<value>
%{
Config:DefaultProjectDirectory}
%{
Config:LastFileDialogDirectory}
%{
Cpp:LicenseTemplate}
%{
Cpp:LicenseTemplatePath:FileBaseName}
%{
Cpp:LicenseTemplatePath:FileName}
%{
Cpp:LicenseTemplatePath:FilePath}
%{
Cpp:LicenseTemplatePath:NativeFilePath}
%{
Cpp:LicenseTemplatePath:NativePath}
%{
Cpp:LicenseTemplatePath:Path}
%{
CurrentBuild:Env:<value>}
%{
CurrentBuild: