Issue #84 (File Decorations & Multi-select Search)11/29/23
Learn AI in 5 Minutes a Day
We'll teach you how to save time and earn more with AI. Join 70,000+ free daily readers for trending tools, productivity-boosting prompts, the latest news, and more.
|
|
|
Here are a couple of things to note about doing search/replace in files in VS Code. First of all, when you search for something you'll notice VS Code's search function provides search results similar to what you see in the file explorer.
These are referred to as
"file decorations and colors" that indicate the file's problems and source control information, as is commonly seen in the file explorer.
So you'll be able to see things like untracked files (U), modified files (M), conflicted file (C), etc.
The other useful thing related to searching in files is the ability to do multi-select when performing a search/replace operation. For example, if you do a find and replace, you can
CTRL-CLICK to select specific files in the results.
Then when you click to perform the search/replace action, the replace will only take place on the selected files.
And finally, in the Search pane, there's a field called "files to include" that lets you insert glob patterns to match what files you want to search in. But note the little
icon at the end of this field called "Search only in Open Editors".
This lets you toggle whether you want to do a full search in all files or just in the ones that are currently open.
Now on to this week's hand-picked links!