首页 > 解决方案 > 如何像 InteliJ 一样自动插入标题并在 CLion 中使用?

问题描述

如果我已经在主 CMakeLists.txt 文件中指定了包含文件夹,IDE 是否应该很容易搜索符号或者我错过了什么?

例如,我在命名空间 Anggur 下有类 Lexer;

它应该自动插入

#include <Anggur/Lexer.h>

using Anggur::Lexer;

int main() {
    Lexer|
}

标签: c++clion

解决方案


推荐阅读