From 07e808d16f59e46c45d8f7c84e44974457e6a41d Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Fri, 4 Oct 2024 12:07:43 -0400 Subject: [PATCH] Document File Scan Exclusions (#18738) Release Notes: - N/A --- docs/src/configuring-zed.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index 230255597e..6740d51364 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -844,6 +844,27 @@ If the setting is set to `true`: The result is still `)))` and not `))))))`, which is what it would be by default. +## File Scan Exclusions + +- Setting: `file_scan_exclusions` +- Description: Configure how Add filename or directory globs that will be excluded by Zed entirely. They will be skipped during file scans, file searches and hidden from project file tree. +- Default: + +```json +"file_scan_exclusions": [ + "**/.git", + "**/.svn", + "**/.hg", + "**/CVS", + "**/.DS_Store", + "**/Thumbs.db", + "**/.classpath", + "**/.settings" +], +``` + +Note, specifying `file_scan_exclusions` in settings.json will override the defaults (shown above). If you are looking to exclude additional items you will need to include all the default values in your settings. + ## File Types - Setting: `file_types`