VSCode
文章平均质量分 61
booksyhay
这个作者很懒,什么都没留下…
展开
-
clang代码格式化风格选项详细说明
clang官方给出了代码风格配置时的各个选项的说明:Clang-Format Style Options — Clang 13 documentationhttps://clang.llvm.org/docs/ClangFormatStyleOptions.htmlclang内置了以下几种基础风格: LLVMA style complying with theLLVM coding standards GoogleA style complying withGoogle’s ...原创 2021-11-03 10:28:35 · 1308 阅读 · 2 评论 -
VSCode中针对C语言的代码格式化配置
默认格式化工具打开设置(Ctrl + ,) ,选择“用户”配置,找到“文本编辑器” - “Default Formatter”:安装了C/C++插件后,即可选择:C/C++ ms-vscode.cpptools键入时自动格式化建议使能该选项:设置->文本编辑器->格式化->Format on Type:勾选后,当敲回车键时即可看到格式化的效果。C/C++格式化在用户 -扩展 -C/C++中,找到C_Cpp: Formatt...原创 2021-11-02 18:50:17 · 21945 阅读 · 5 评论 -
VSCode中自定义的snippets对h文件无效的解决办法
【前言】关于在VSCode中自定义snippets(代码片段)的方法,请参考下面的文章,写得非常详细、具体。https://blog.csdn.net/maokelong95/article/details/54379046[VS Code]跟我一起在Visual Studio Code 添加自定义snippet(代码段),附详细配置【问题现象】自定义的代码片段(user snippets)在c文件中有效,在h文件中无效。【原因分析】参考:https://githu原创 2021-08-10 16:11:49 · 1468 阅读 · 1 评论