如何在phpstorm搜索中设置文件名掩码以排除刀片文件
在我的常规Laravel项目中,我有常规的.php
带有类的文件和.blade.php
我项目模板的文件。在使用文件掩码上搜索phpstorm时,我可以选择使用*。blade.php
过滤以仅查看我的刀片模板。但是,当我用*。php
过滤时,我会找到.php
文件和.blade.php
文件,因为这两个文件类型都以类似的方式结束。我想以一种仅找到.php
文件的方式过滤,从而以某种方式排除刀片文件。
在phpstorm文档中,我找到了以下相关部分: https://www.jetbrains.com/help/phpstorm/finding-and-replacing-replacing-text-in-project.html#exclude_type 但是,本文档并未明确指定如何以这种方式排除文件。
实现这一目标的正确语法是什么?
(在撰写本文时,尚未提出过stackoverflow问题,但该特定的php/blade文件蒙版用例。)
In my regular Laravel project I have both regular .php
files with classes and .blade.php
files for the templates of my project. When searching in PHPStorm with a file mask on, I have the option to filter with *.blade.php
to only see my blade templates. But when I filter with *.php
I find both .php
files and .blade.php
files because both file types end in a similar way. I would like to filter in such a way that only .php
files are found, thus excluding Blade files in some way.
In the PHPStorm documentation I found the following relevant section: https://www.jetbrains.com/help/phpstorm/finding-and-replacing-text-in-project.html#exclude_type
However, this documentation does not explicitly specify how to exclude files in this way.
What is the correct syntax to make this happen?
(As of this writing, no Stackoverflow questions have been asked yet featuring this specific php/blade file mask use-case.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正确的语法如下:
说明:
您可以在此处找到有关可用通配符的更多信息:
https://www.scootersoftware.com/v4help/index.html?file_masks.s.html
The correct syntax is as follows:
Explanation:
You can find more information on the available wildcards here: https://www.scootersoftware.com/v4help/index.html?file_masks.html
Relevant part from that link: