From 8100432fad9b252972c5ca1cef27264831e3df5a Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 1 Feb 2024 14:37:24 -0600 Subject: [PATCH] Add Step Through Project-Wide Search Results as a VS Code TIL --- README.md | 3 ++- .../step-through-project-wide-search-results.md | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 vscode/step-through-project-wide-search-results.md diff --git a/README.md b/README.md index c4ed420..f4c1434 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1365 TILs and counting..._ +_1366 TILs and counting..._ --- @@ -1568,6 +1568,7 @@ _1365 TILs and counting..._ - [Advance Through Search Results](vscode/advance-through-search-results.md) - [Enable Breadcrumbs For Version 1.26 Release](vscode/enable-breadcrumbs-for-version-126-release.md) - [Open An Integrated Terminal Window](vscode/open-an-integrated-terminal-window.md) +- [Step Through Project-Wide Search Results](vscode/step-through-project-wide-search-results.md) - [Toggle Between Terminals](vscode/toggle-between-terminals.md) ### Webpack diff --git a/vscode/step-through-project-wide-search-results.md b/vscode/step-through-project-wide-search-results.md new file mode 100644 index 0000000..cb7c385 --- /dev/null +++ b/vscode/step-through-project-wide-search-results.md @@ -0,0 +1,17 @@ +# Step Through Project-Wide Search Results + +When you do a project-wide search in VS Code, the Search tray opens and +displays a listing of all the matches file-by-file. This view is handy to +glance at the results and quickly navigate to a specific one. If you need to +look at every single result, clicking through them one by one is slow and +tedious. + +A better option for doing this is to use the keybindings for stepping forward +and backward through the results. + +Hitting `F4` will go to the next match in the search results. Hitting +`shift+F4` will go to the previous match. Even if you move around, make edits, +and navigate to other files, your position in the search results will be +preserved for the next time you hit `F4`. + +[source](https://github.com/Microsoft/vscode/pull/18073)