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.
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 cmd+s
and the changes I had made would be saved to the relevant files.
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 https://github.com/Microsoft/vscode/issues/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?
There are no plugins at the moment, maybe somebody could create one? I don't have time at the moment.
I would say that these are the killer features that could be included:
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.
Atom even allows to open search results in a split pane. Clicking the results opens files in the left pane. This in my opinion is superior compared to tiny search panel VSCode offers. Hopefully this will be improved in the future.
+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
[email protected]
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
https://github.com/Microsoft/vscode/issues/22322#issuecomment-357048529,
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!
yes, read the release notes --> https://code.visualstudio.com/updates/v1_21#_horizontal-search
to enable it, add "search.location": "panel"
to your settings.
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 notifications@github.com
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
https://github.com/Microsoft/vscode/issues/22322#issuecomment-372863257,
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: https://github.com/Microsoft/vscode/issues/14554#issuecomment-372937725
@umpirsky, @tannerlinsley, @jhicken, @markhicken, @SyntaxErratum, @schaveyt,
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.
Find: \s+
Replace: \n
So if it finds 1 or more than 1 whitespaces, it replaces them all as 1 newline, instead of inserting \n
to the found whitespaces.
@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?
And of course we need an option to specify if we want to search all files.
@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.
Plus the results being displayed under the search bar is terrible imo.
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.
If not visible -> make visble and focus
if visible, unfocused -> focus
if visible, focused -> hide
@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 Shift + Cmd/Ctrl + F
Closing this as you can now change the location of search via search.location
in your settings file.
Most helpful comment
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.