-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save search results #17920
Comments
@charlestac May I know how it helps in saving search results? |
@sandy081 I have a very basic scenario which is logging the search results as part of a document. I can copy the search results out from Notepad++ and proceed further actions (i.e. diff/log/search), so I hope this function could be available as well in VSCode. |
Please add this. I've been tasked with determining the scope of rewriting a certain core feature of our code and I want to show my boss just how much work is required. Copying the search results would help me show this. |
There are multiple uses of being able to capture search results in a document.
|
Please add a context menu with "Save" or "Export". |
This is a much needed feature. |
We currently have a use case to find the files that has a certain snippet. Yeah, the search works but it's kinda tiring to type in all the files that have the snippet. |
Having search results in a separate buffer a'la Sublime would be very useful. Maintaining a history and having new searches appended to the buffer would also be great. Appreciate that this is a nice-to-have though. Possible extension candidate? |
This is the one feature that drives me mad for vs code not having - its the only time i've needed to return to notepad++. Doing search, having full search line matches in a text window to allow more searches and filtering, generating new text file output is a real boon for diagnosis and troubleshooting logs while fixing bugs. |
I was also surprised there was no way to even copy the search result text to the clipboard. It's very common in large refactoring projects to start by locating all the affected files, and then transferring the list to a spreadsheet for further analysis and progress tracking. Sure we can do the search with other tools outside VS Code, but that's a pain. Of course, you can do this in emacs ... :-) |
There are so many different ways people would like search results presented. I would strongly prefer that an API be exposed so that extension authors can make all the flavors of search results that the community wants. |
Sure, an API would be even better - I do not insist on having this in the core :-) |
Export to JSON would be 👌🏻 |
I admit being able to save search results would be pretty useful. |
I would love to see a also recend search results, it would help me to search two things and compare them. I think sublimetext had it when i came from it. I just noticed i miss it. |
+1 |
1 similar comment
+1 |
You should also consider putting the search results in an editor like Sublime Text does. Benefits: keeps a history of your search results, allows you to edit them (ex: delete a chunk you don't care about), lets you copy, select paths to files and copy, etc, etc. It's very simple, but very useful. |
I wish I could have the search result panel exported to a tab so I could work with multiple result sets that were based on different search queries. Having to reenter search queries and closing out the same unwanted matches wastes time I could be using to fix code. If not a tab, please create the ability to save queries in my settings.json and let me recall a query (and all its filters) using a dropdown box. |
@jmo84 i like this approach very much ! |
+1. Please add this feature. It will make code reviews / security reviews much easier to do inside of VS Code. Example, finding all instances of some pattern, copying out of the search window, and putting into a ticket / code review comment. |
+1 definitely useful, export search results |
Implemented in #42120 |
Excellent job! Thank you everyone! |
I love VSCode, but the search result doesn't work all that well sometimes...
For example, it could be great that user can save the details of search results of a folder, such as support copy or export function in search.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: