gpt4 book ai didi

intellij-idea - 在 Intellij 的项目中包含外部文件(不是库)

转载 作者:行者123 更新时间:2023-12-05 05:18:04 24 4
gpt4 key购买 nike

我在目录“P”中有一个项目“P”。我想在“P”中使用一个 css 文件,但 css 文件不在目录“P”中。它比“P”高一级。我是否仍可以在“P”中包含/使用 css 文件而不更改目录结构或复制 css 文件?

最佳答案

是的,您可以在根项目目录之外添加目录:

Project Structure → Modules → Sources → Add content root

enter image description here

然后添加目录后,在你的项目根目录下就可以看到了。

enter image description here

关于intellij-idea - 在 Intellij 的项目中包含外部文件(不是库),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48296648/

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