gpt4 book ai didi

c++ - 如何在 JUCE 项目中获得 "go to definition"?

转载 作者:行者123 更新时间:2023-12-04 19:27:54 26 4
gpt4 key购买 nike

我试图让“去定义”为使用 Projucer 创建的 JUCE 项目工作。我已经尝试过 CLion 和 Visual Studio Code,但他们似乎无法找到存在于 JUCE 库中的定义。
我在 Ubuntu 上。有没有一条有福的道路?我通常是 vim 用户,但我愿意尝试任何 IDE。

最佳答案

我刚刚想通了!
在 VS 代码中转到 ViewCommand Palette并输入 C/C++: Edit Configurations (UI)这将进入 IntelliSense 配置页面。在包含路径下的新行中,指定 JUCE 的路径,例如~/JUCE/** .

Note: The two stars are needed to tell VS Code to look through subdirectories.


这将创建一个隐藏文件夹 .vscode在您的项目文件夹中使用此配置。

You will need to repeat these steps for each project you make.


定义和代码完成现在应该可以工作了。

To compile your code, in your project folder go Builds then LinuxMakefile and in a terminal run the command make. Finally, go to the builds folder and run your project ./exampleProject.

关于c++ - 如何在 JUCE 项目中获得 "go to definition"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69292860/

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