-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Find and Replace is a bad experience. #22322
Comments
Of all the find replace options, Atom does it best in my experience. This is one of the main reasons I can't switch to VS Code. |
I just came to open an issue asking for some search panel improvements and then I discovered I am not alone. I agree on all the points above. And I add my 2cents:
edit: fix typo |
I agree. I tried VS Code for a couple of months and I like it but I went back to Atom solely because of the search functionality. |
Yes, yes, yes!!! Please please please!! Just clone atom or sublime's UX for this area and everyone and their sister will adopt vscode. |
Thanks for the well articulated feedback. We'll discuss this in the team and figure out how we want to proceed with this. |
If I may, I'd like to also propose that once you have an search results editor window open, it would be very neat to be able to edit the matches inline. Thus I could select a range of matches and, for example, replace a typo within that range only. Then I would hit CtrlSF plugin for Vim (https://github.com/dyng/ctrlsf.vim) does this, for example. |
@leemhenson that's a great feature. If I were the backlog owner I would put this as an additional feature after refactoring the base experience :) very cool though 👍 |
@waderyan This is huge :) |
Related #30104 I agree Atom does great job here, it simply looks more polished, starting with position, buttons, icons and results. |
Are there any community plugins that deliver this in the meantime? |
I started working on this but, really, until there is support for creating and opening a bottom panel it is a non-starter. |
SublimeText's approach is to skip the bottom panel all together and simply use an entire first-class file tab titled "Find Results" where all results are continually appended to the end. The vscode extension sample repo has a content provide example that is a great start to this. https://github.com/Microsoft/vscode-extension-samples/blob/master/contentprovider-sample/README.md |
+1. The major reason stopping me from switching to VSCode from Atom. |
I agree with you, put searching bar in bottom is better than aside. |
+1. I still use atom regularly only to perform search/replace in projects. The vscode search bar is really painful. |
I switched from Atom about a week ago and am loving the VS Code experience, but the one thing holding it back is this UX blocker. Search results frequently run off the panel unless you go to the trouble of resizing it manually, ie. each time I do a simple find/replace I have to resize the panel. I really look forward to the day search results appear in a bottom panel and greatly miss how things are in Atom... in fact it would be nice to leave it open to development so we can shift any of those vertical panels to a bottom space. |
Microsoft/vscode
reply@reply.github.com
El 11 ene. 2018 12:17 PM, "pdodzweit" <notifications@github.com> escribió:
… I recently switched from Sublime to VS Code and I have to say that I
actually like VS code's find better than Sublime's since i can quickly
click on the search result and open the file to view the full context. With
sublime I have to context switch between the search results and the file,
or i have split the tabs, but why do that when I could take one second to
resize the search results to take up the same amount of room as the split
tabs would have?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#22322 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhOiqvmDiBz3PmVpevjwCMPNvOJ6WjQuks5tJmxDgaJpZM4MYfkT>
.
|
I have this bad experience. When I find and replace a word in all files, it automatically opens all the files. I disapprove it strongly. |
I have someone actively researching alternatives to vscode because of the search location. It is a serious concern to those of us using it every day. Is there any plan to look at this? |
I also feel the same about search in vscode. It's been annoying me for a while now. I can live with it for now but hopefully we'll have the option the configure the placement soon. I'd say search is a vital feature for developers and it's not the best experience in vscode so far. I'll add to this, what about adding search and replace/modify within the search window like Intellij/Webstorm does? That feature is pretty neat! |
Looks like it is available in preview? |
yes, read the release notes --> https://code.visualstudio.com/updates/v1_21#_horizontal-search to enable it, add |
I have enabled the preview feature and so far it's working wonderfully. Thank you for addressing this! Productivity is over 9000 now... |
Still useless. I found and replaced a word in all files and it open all files. What a waste of time! |
Visually, this is better. I just made the permanent switch today. Still not
enjoying the mass file opening though...
…On Tue, Mar 13, 2018 at 6:20 PM Gustavo Reis ***@***.***> wrote:
Still useless. I found and replaced a word in *all* files and it open all
files. What a waste of time!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#22322 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFUmCRMwEqxUtSvNYpXWPDHP1SewHfeKks5teGJegaJpZM4MYfkT>
.
|
Mass file opening is a big fail. Is it reported? |
@umpirsky one of developers updated, but the file opening still continues, so I reported, check his update comment: #14554 (comment) |
@umpirsky, @tannerlinsley, @jhicken, @markhicken, @SyntaxErratum, @schaveyt, Microsoft has just updated the version of VSCode and now you can find and replace one word in all file without opening all files!!! I tested and it worked! |
Horizontal search is great. Now it just needs a config option for search context that puts X lines before and after each result. There's only a few things remaining for VS Code to be fully better - or at least equal to - Atom, and this is one of them. |
I'm just hoping that you can use regex for replacing found regexes.
So if it finds 1 or more than 1 whitespaces, it replaces them all as 1 newline, instead of inserting |
@tommai78101 if you hit the button with the asterisk icon, you can target the spaces you're wanting to remove: becomes |
@drawcard Oh, it was fixed. I didn't know that... I wondered why I wasn't able to do this before... |
One thing that I noticed with the search experience in general: When you have a search results spanning multiples files, and selecting each file one by one to do some editing, search looses focus on the file as soon as you go to the file. In other words, the search panel does not keep the latest file opened highlighted. After editing a file, when I get back to the search editor, I need to know which file I was just editing. Has anyone else noticed that? |
Is there a way to replace the search box entirely? I want to be able to hit CTRL-F and have an atom / sublime experience: open the horizontal search bar and every time I type enter it scrolls through the occurrences in the opened document? |
@frguthmann are you using the latest version of VSCode? I get the Sublime style search panel: Edit - sorry this is if I do a search across all files (which I do more frequently than a search inside a single file) |
@drawcard Yep I wish I could use this to search inside the opened file too. |
I would also love it if it displayed the scope of your search. If you are searching a folder, have something saying "searching inside... " Most of the time I can only assume it is working but then sometimes it does not find the string I know is present in the files I am searching. Then I wonder where it is searching. The UI of VScode is overall lacking but this is one of the worst bits |
I would like it to be able to toggle the panel using the usual keyboard shortcut. |
@stormhillmedia when you do "Find in Folder" there is an input field that shows the scope: @apahne you can toggle and focus to search via Closing this as you can now change the location of search via |
I have a proposal. I think that global find and replace would be much more usable if it was laid out horizontally. Preferably where things like the "PROBLEMS", "OUTPUT", and "DEBUG CONSOLE" are.
I love Atoms and Sublimes find and replace for lots of different reasons but this is honestly my biggest hangup with vscode.
So here are what some of the competition does.
Atom (arguable my favorite experience and the most concise) ---- Horizontal and Vertical
Sublime (Cool but once you search you lose you search box) ---- exclusively Horizontal then Vertical
after search
And Webstorm I feel like they gave up and just made it work.
You get a separate popup
then that goes away after you search and you get results (In my opinion they are muddy and hard to read) Horizontal
THE POINT
The point is most other editor at least show search results in a Horizontal layout. This is for good reason. The results are much more digestible.
Here is what my results look like most of the time. (all squished on the side)
The funny thing about this.. When showing search in the documentation for vscode it looks more horizontal. I think the reason why is it creates a better user experience.
https://code.visualstudio.com/docs/editor/codebasics#_search-across-files
So my issue is I think I could probably make a plugin to do this a little better but I wanted to see if this is the direction vscode will be going in the future or if it should be done as a plugin.
The text was updated successfully, but these errors were encountered: