LucasMelo
LucasMelo

Reputation: 117

Sublime Text - Ignore files in search

There is a way to exclude a file (javascript compresed) from my searchs in sublime text?

Upvotes: 5

Views: 2688

Answers (2)

Monarch Wadia
Monarch Wadia

Reputation: 4996

Yes!

binary_file_patterns will work.

 "binary_file_patterns": ["*.svg", "*.png", "*.otf", "*.pdf", "*.jpg", 
     "*.png", "package-lock.json", "node_modules/*"]

Upvotes: 8

garyh
garyh

Reputation: 2852

Find > Find In Files... (Ctrl+Shift+F on Windows, Cmd+Shift+F on Mac)

Find: string to find

Where: path/to/folder, path/to/another/folder, -*.min.js

You can either manually type the comma-separated paths into the 'Where' input field or click the ... button to the right of the field to select criteria. To exclude minified js files you would add -*.min.js

Upvotes: 9

Related Questions