Sublime Forum

What is «Add Open Folders» in «Find in files» panel?

#1

I don’t understand function of this point of the menu. I always carry out search in all my project, and not just in the folder in which I work at present. What do I have to make that this point of the menu carried out the function?

Thanks.

0 Likes

#2

The menu inserts placeholders into the “where” field. By default, it searches in <open folders>,<open files> but can be customized.

0 Likes

#3

FichteFoll, on the gif it is shown that if opposite to Where: is <open folders>, Sublime Text 3 carries out search in all project even if it isn’t opened any folder and any file. Thanks.

0 Likes

#4

<open folders> refers to the folders you added to the project in general, not whether they are expanded in the sidebar.

0 Likes

#5

But why it is necessary <open folders> if without it the result turns out just the same?

0 Likes

#6

See my earlier post.

0 Likes

#7

It seems, I understood. If I choose <open folders>, search will be carried out according to all folders of my project, but not according to open files if they aren’t included into my project.

Thank you very much!

0 Likes