gpt4 book ai didi

visual-studio-code - Visual Studio Code includePath 子目录

转载 作者:行者123 更新时间:2023-12-03 02:56:46 26 4
gpt4 key购买 nike

我正在努力处理更大的项目源上的 includePath 设置。假设我的文件夹结构如下:

/BaseComponent/public
/BaseComponent/include
/BaseComponent/source
/SubComponent1/public
/SubComponent1/include
/SubComponent1/source
/SubComponent1/SubSubComponent/public
/SubComponent1/SubSubComponent/include
/SubComponent1/SubSubComponent/source
/SubComponent2/public
/SubComponent2/include
/SubComponent2/source

我尝试进行如下配置:

"includePath": [
...
"${workspaceRoot}",
"${workspaceRoot}/*/include",
"${workspaceRoot}/*/public"
],

但这似乎并没有成功。有没有办法只使用workspaceRoot 内的所有 header ?像“包括所有子文件夹”之类的东西?

或者另一种定义依赖项目路径的方法?

最佳答案

我相信这就是您正在寻找的:

"${workspaceFolder}/**"

假设所有目录都在您的工作空间文件夹内。

关于visual-studio-code - Visual Studio Code includePath 子目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45506156/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com