参数配置:

qt creator 代码格式化工具Astyle的配置

快捷键:

qt creator 代码格式化工具Astyle的配置

相关参数:

"%{CurrentDocument:FilePath}"  --style=bsd --convert-tabs --indent=spaces=4 --attach-closing-while  --indent-switches  --indent-namespaces --indent-continuation=4 --indent-preproc-block --indent-preproc-define  --indent-col1-comments --pad-oper    --unpad-paren  --align-pointer=name    --align-reference=name   --add-braces 

 

%{CurrentDocument:Selection}

相关文章: