【问题标题】:Prevent CLion from reordering includes while using Clang-Format在使用 Clang-Format 时防止 CLion 重新排序包含
【发布时间】:2020-12-13 11:23:42
【问题描述】:

在我的项目中,我需要先包含一个标题。我开始欣赏 CLion 的自动缩进功能,但仍想通过插件使用 Clang-Format。有没有一种方法可以同时使用两者(可能会禁用包含的重新排序),还是我必须在其中一个之间进行选择?

【问题讨论】:

    标签: include clion clang-format


    【解决方案1】:

    要禁止clang-format 重新排序您的包含,您可以设置样式选项SortIncludes: false。详情请见documentation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-02
      • 1970-01-01
      • 2020-09-09
      • 2019-06-19
      相关资源
      最近更新 更多