问题描述
也许我很胖,但是我无法理解在PHPStorm中创建项目时资源根按钮/名称是什么。看过,我发现的唯一解释是变体在下面:
Maybe I'm being thick, but I fail to understand what the 'Resource Root' button/designation is for when creating a project in PHPStorm. Having looked at the PHPStorm documentation on the topic, the only explanation I've found is a variation on the following:
这不回答我的问题。
推荐答案
我可以回答有趣的是,URL路径将在适用的情况下针对资源根进行解析。例如,在HTML < a href =...>
或< img src =...>
元素,相对URL根据资源根进行查找。当您在 href
或 src
属性中开始输入时,自动完成将建议这些目录中的项目和URL无法解决将被标记为警告。
I can answer anecdotally that URL paths will be resolved against "resource roots" where applicable. For instance, in HTML <a href="...">
or <img src="...">
elements, relative URLs are looked up against resource roots. When you start typing within the href
or src
attributes, auto-completion will suggest items in those directories, and URLs which cannot be resolved will helpfully be marked as a warning.
这篇关于PHPStorm中的“资源根”名称是什么?就此而言,PHPStorm认为什么是资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!