# My_QtCtreator_settings **Repository Path**: limh909/My-QtCreator-Settings ## Basic Information - **Project Name**: My_QtCtreator_settings - **Description**: My QtCreator Settings - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-06-06 - **Last Updated**: 2025-09-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # My QtCreator Settings ## 编辑器主题 导入文件 qdarksky_(EX1).xml QtCreator Menu:Edit -> Preferences -> Text Editor -> Font & Colors -> Import ## Beautiful 美化器 AStyle: 下载地址: https://sourceforge.net/projects/astyle/files/ * 激活插件: QtCreator Menu:Help -> About Plugins -> C++ -> Beautifer * 设置: 下载或复制 AStyle 文件夹 到 Qt/Tools/ QtCreator Menu:Edit -> Preferences -> Beautifer -> Artistic Style Artistic Style command: d:\Qt\Tools\AStyle\bin\AStyle.exe Options: * 选中 Use file *.astylerc defined in project files * 选中 Use customized style:, 点击 Edit 按钮, 把下面的代码粘贴到 Edit Configuration - Qt Creator 对话框内的 Value 栏, Name 栏添加名字 ``` AStyle # --style=allman --style=kr indent=spaces=4 # 缩进采用4个空格 # indent-switches # -S 设置 switch 整体缩进 # indent-cases # -K 设置 cases 整体缩进 indent-namespaces # -N 设置 namespace 整体缩进 indent-preproc-block # -xW 设置预处理模块缩进 indent-preproc-define # -w 设置宏定义模块缩进 pad-oper # -p 操作符前后填充空格 # delete-empty-lines # -xe 删除多余空行 # add-braces # -j 单行语句加上大括号 # align-pointer=name # *、&这类字符靠近变量名字:w align-pointer=type # *、&这类字符靠近类型 --unpad-paren #紧凑括号内外 # 原文链接:https://blog.csdn.net/qq_33154343/article/details/101397429 ``` ## Copilot 参考链接: https://blog.csdn.net/weixin_45507142/article/details/131602800