How to exclude some directory during search(through ctrl+shift+f) in sublime 2?

时间:2015-06-15 15:19:41

标签: python sublimetext2 sublimetext3 sublimetext

I want to exclude some directory like .venv/lib/python2.7/ from the search result during the search for specific keyword, I don't want the result which come from the above directory, Suppose I want to search keyword "subtitle", I will press ctrl+shift+f then in Find : field I will write subtitle, but in Where : what should write to exclude so that result does not come from the exclude directory. Let me more describe In sublimetext2 I have open horizon folder. This is my project

/opt/stack/horizon

but I want to exclude .venv Which is in following directory, you can check this is inside horizon folder

/opt/stack/horizon/.venv/

enter image description here

1 个答案:

答案 0 :(得分:6)

写下您要搜索的路径,然后添加要忽略的文件夹列表,如下所示:

/home/me/dev/project,-/home/me/dev/project/junkfolder/*,-/home/me/dev/project/var/log/*

语法为-path/to/ignore/*