从PhpStorm中的模块声明建议中排除一些文件夹 [英] Exclude some folders from module declaration suggestions in PhpStorm
问题描述
当我尝试使用CRTL按钮单击PhpStorm中的某些功能时,系统会尝试将我带入此功能的定义中.有时会有多个定义,烦人的页面会显示出来,提示您选择要转到哪个定义.就像这里:
When I try to click on some function in PhpStorm with a CRTL button the system tries to bring me to a definition of this function. Sometimes there are multiple definitions and the annoying page shows up telling to chose to which definition you want to go. Like here:
由于我正在使用grunt并最小化/连接结果,因此定义存在多个位置.我知道我应该忽略node_modules
中的所有内容,但系统不会.我有办法排除某些文件夹吗?
Because I am using grunt and minifing / concatenating results, the definitions is in multiple places. I know that I should ignore everything in node_modules
, but the system does not. Is there a way for me to exclude some of the folders?
推荐答案
如果您不需要任何完成/导航/其他操作.从您本地的node_modules中,您可以将此文件夹排除在您的项目之外:
If you don't need any completion/navigation/etc. from your local node_modules, you can exclude this folder from your project:
右键单击,Mark directory as/Excluded
您仍然可以运行Grunt,但是这些文件夹中的文件不会被索引,因此建议您完成/导航
You will still be able to run Grunt, but files in these folders won't be indexed and thus suggested for completion/navigation
这篇关于从PhpStorm中的模块声明建议中排除一些文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!