Qt Creator 代码格式美化插件 Qtc_AStyle

软件介绍

Qtc_AStyle是一个Qt Creator IDE的插件,使用了Artistic Style V2.04的静态库,IDE加载这个插件后,在选项中可以很直观地定义自己的代码风格,然后一键对整个项目所有的源文件进行代码格式美化。

加载该插件后,在QtCreator菜单"Tools"-"Options..."中可以看到该插件的设置项,默认配置参考华为代码规范设置。


移动鼠标到每个选项上,弹出的Tooltip可以看到每个选项的具体含义。

格式化当前文件
打开一个源文件,使用快捷键"Alt+F8",或者选择菜单"Tools"-"代码格式化"-"格式化当前文件"
格式化当前项目
选择菜单"Tools"-"代码格式化"-"格式化当前项目",弹出格式化当前项目对话框,从下拉框中选择项目,勾选需要格式化的文件,点击“格式化”,注意:格式化当前项目时,请保存所有当前打开的文档,否则会丢失任何未保存的修改。

本文地址:https://www.codercto.com/soft/d/20424.html

The Nature of Code

The Nature of Code

Daniel Shiffman / The Nature of Code / 2012-12-13 / GBP 19.95

How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital w......一起来看看 《The Nature of Code》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具