编程工具

阅读量: 426 编辑

C++编程工具使用和介绍

Windows:Dev C++、Code::BLocks、VsCode、Clion

Mac:Code Runner、VsCode、Clion

NOI Linux:Code::BLocks

clang-format

clang-format -i C:\workspace\wokspaceCpp\amdCpp\hello.cpp

clang-format -style="{BasedOnStyle: LLVM, IndentWidth: 4}" -i C:\workspace\wokspaceCpp\amdCpp\hello.cpp

苹果电脑

clang-format -style="{BasedOnStyle: LLVM, IndentWidth: 4}" -i ./hello.cpp

你可以在项目的根目录或者源代码目录下创建一个 .clang-format 文件,然后在这个文件中添加如下内容:

BasedOnStyle: LLVM
IndentWidth: 4

这样配置文件告诉 clang-format 使用 LLVM 风格,并将缩进宽度设置为4个空格。

爱码岛编程公众号
试卷资料
爱码岛编程小程序
在线刷题
苏ICP备13052010号
©2023 南京匠成信息科技有限公司