Indexing in Sublime Text 3

I recently started using Sublime Text 3, I ran into a small problem that annoyed me with sublime text, keeping index files under node_modulesand bower_componentseven after I excluded them in user settings:

{
    "color_scheme": "Packages/1337 Color Scheme/1337.tmTheme",
    "ignored_packages":
    [
        "Vintage"
    ],
    "binary_file_patterns": [".idea/*", "bower_components/*", "node_modules/*"],
    "index_files": true,
    "index_exclude_patterns": [".idea/*", "bower_components/*", "node_modules/*"],
}

In the above configuration, excluded folders are deleted from Goto Anything, but I can still find the text inside the files under these folders Find in Folder..., please advice.

Another question is how can I reset index in sublime text.

+4
source share
1 answer

Try **instead *(to match subdirectories) e.g.

"binary_file_patterns": [".idea/**", "bower_components/**", "node_modules/**"],

Works for me in ST3 build 3114

+4

Source: https://habr.com/ru/post/1613095/


All Articles