简体   繁体   English

如何在Sublime的“文件查找”中仅包含一个文件夹,而不包含其他文件夹?

[英]How to include only one folder and not others in Sublime's Find in Files?

In a rails project, I have several versions of view folders, based on locale. 在Rails项目中,我基于区域设置有多个版本的视图文件夹。 When doing global searches in Sublime 3, I'd like to have all of them excluded but one, the default locale folder. 在Sublime 3中进行全局搜索时,我希望将所有这些都排除在外,但要保留默认语言环境文件夹之一。 So that 以便

app/views/en-US

gets searched, but any others, like 被搜索到,但是其他任何人都喜欢

app/views/en-UK app/views/pt-BR

don't. 别。 I know I can exclude everything under app/view with -app/views/* , but what pattern do I use to exclude everything but app/views/en-US ? 我知道我可以使用-app/views/*排除app / view下的所有内容,但是我使用什么模式排除app/views/en-US

After you add your project do this: 添加项目后,请执行以下操作:

  1. In the top menu bar go to Find -> Find Files In... 在顶部菜单栏中,转到查找->在...中查找文件...
  2. In the popup at the bottom you'll see a 'Where:' field. 在底部的弹出窗口中,您将看到“位置:”字段。 Click the '...' button on the right and add or exclude whichever directories you need to. 单击右侧的“ ...”按钮,添加或排除所需的目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM