diff --git a/editor/find_in_files.cpp b/editor/find_in_files.cpp index 73a4e0163e9b..333da9a3f47a 100644 --- a/editor/find_in_files.cpp +++ b/editor/find_in_files.cpp @@ -235,6 +235,11 @@ void FindInFiles::_scan_dir(String path, PoolStringArray &out_folders) { if (file == "") break; + // If there is a .gdignore file in the directory, don't bother searching it + if (file == ".gdignore") { + break; + } + // Ignore special dirs (such as .git and .import) if (file == "." || file == ".." || file.begins_with(".")) continue;