Use the Search all shortcut: Ctrl + Shift + F , then select the folder in the "Where:" box below. (And for Mac, it's ⌘ + Shift + F ). If the root directory for the project is proj, with subdirectories src and aux and you want to search in all subfolders, use the proj folder.
If you have the project open, just use “ctrl + shift + f” (windows key bindings, I don't know the other OS key bindings) to bring up the “find in files” panel at the bottom of the screen. Type your search string into the “Find” text input and make sure the “Where” input says “” and press the “Find” button.
Or, if you want to find and replace text in a number of files at once, press Command + Shift + F or Control + Shift + H to open Sublime Text's Find in Files tool that can search and replace across as many files as you have open or select from its menu.
You have to add a folder to the Sublime Text window in order to navigate via the sidebar. Go to File -> Open Folder... and select the highest directory you want to be able to navigate. Also, 'View -> Sidebar -> Show Sidebar' if it still doesn't show.
Yes there is.
On Windows
CTRL + SHIFT + F
On Macintosh
CMD + SHIFT + F
The Where field in the search panel determines where to search. You can define the scope of the search in several ways.
More: https://docs.sublimetext.io/guide/usage/search-and-replace.html
In Sublime Text 3
Right click on FOLDERS Navigation bar
Choose Find in Folder
*/folder_name/*
*/folder_name/*
will search folders called "folder_name" that are represented in your current session. For instance, if you have a file open with a path of C:\Users\joe\folder_name\file.js
, you can use the *//*
pattern to search any of those folders or combinations of folders: */joe/*
and */Users/joe/*
will both work. However, if you have a file like this C:\Users\timmy\folder_name\file.js
that's not open, it won't search that (unless you explicitly name it, like in the next example).C:\path\to\folder
C:\path\to\folder, */folder_name/*
To answer your last question, at some point Sublime started automatically searching all open files and represented folders, but if you want to be sure you can use one or all of these variables:
<project>,<current file>,<open files>,<open folders>
You can read more about searching at the unofficial sublime documentation. Or from this post, which is similar to your own.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With