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/
答案 0 :(得分:6)
写下您要搜索的路径,然后添加要忽略的文件夹列表,如下所示:
/home/me/dev/project,-/home/me/dev/project/junkfolder/*,-/home/me/dev/project/var/log/*
语法为-path/to/ignore/*
。