You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support multi-line search for Global search #13155
Background search implementation for multi-line search
Adopt results for multi-line. Eg: Matches
Adopt Replace functionality for multi-line. Eg: Matches
Reacted by Derek Bekoe, JoBrad, Maksim Popov, Cezar Sá Espinola, Aluan Haddad, Kai Yao, Max Baluev, David Alan Hjelle, Dakara, Matthias Kerk and 173 more
Reacted by Tanja, Micah Rairdon, Charl and Alex Meng
This feature/bug-fix should be prioritized better.
I use global search to find type definitions and make code refactoring decisions based on results, e.g. "find all uses of ..." some particular piece of code.
I've seen, tested, and verified specific scenarios where searching for a search-term using Global Search (with Match Whole Word -on) doesn't turn up a matching result, even though there's a file with that search-term in it. If I open the known file, Global Search will only then start showing the matching result. -- #13068, #9051, #18671
In short, Global Search is a critical feature for helping refactor code, without this improvement I can't trust VS Code search functionality to help me produce quality code. Thanks for the effort. Please get this in.
Reacted by Sandeep Somavarapu, jinglesthula, Hans Gerwitz, Jan Niklas Hasse, Yufan Lou, Samuel Thompson, Brandon Mitchell, Sergei Rodionov, main76, Dwayne Towell and 5 more
Currently, VS Code is dependent on ripgrep supporting multiline. If you are interested in this capability, you probably want to follow: BurntSushi/ripgrep#176
This use case is clearly much more important to vscode than to ripgrep. Perhaps this dependency needs to be reconsidered.
Reacted by Jan Niklas Hasse, Yufan Lou, Brenden Kromhout, Hal Carleton, Lukas Spieß, Trevor Schmidt, louisptremblay, Yves Rausch, Alex Chaffee, Dwayne Towell and 10 more
I use multiline/regex frequently in both global and single file searches, mostly for find/replace operations, which forces me to use Dreamweaver to count match instances over 999 or for multiline search and replace when I would prefer being able to just stay in vscode for such things.
I have reviewed the project's process documentation, and have found no way to "appeal" an issue's labelling. Given the content of comments here and, especially, the content of the many duplicate issues, I believe this should be labeled bug.
(Yes, I understand it is caused by a dependency, but don't believe that should be relevant to the planning process.)
Reacted by jinglesthula, 👑 Edward Sammut Alessi, Trevor Schmidt, Dwayne Towell, Ethan Setnik, Mitch Lillie, Luca Ban, Luke Tippmann and Kristoffer
haha!! you're kidding right?
after all the work done to support the feature, and all of the support,
some arbitrary decision is made to close the issue....
Oliver Joseph Ash (@OliverJAsh) it was just closed today so please be patient for a few days. I'm sure it'll be added to the release notes of a next release of VSCode.
🤗
I mean, you can see it's closed because code was committed, and as if that wasn't enough it was added to the October 2018 milestone, which may hint that perhaps we'll see this in the October release (which means early November).
Activity
ocaraveo commentedon Apr 13, 2017
This feature/bug-fix should be prioritized better.
I use global search to find type definitions and make code refactoring decisions based on results, e.g. "find all uses of ..." some particular piece of code.
I've seen, tested, and verified specific scenarios where searching for a search-term using Global Search (with Match Whole Word -on) doesn't turn up a matching result, even though there's a file with that search-term in it. If I open the known file, Global Search will only then start showing the matching result. -- #13068, #9051, #18671
In short, Global Search is a critical feature for helping refactor code, without this improvement I can't trust VS Code search functionality to help me produce quality code. Thanks for the effort. Please get this in.
rshpeley commentedon Apr 29, 2017
Komodo edit gets this right, but I'd like to switch to vsc. I use multiple line search/replace in files all the time and vsc should support it.
d-akara commentedon Apr 29, 2017
Currently, VS Code is dependent on ripgrep supporting multiline. If you are interested in this capability, you probably want to follow:
BurntSushi/ripgrep#176
gerwitz commentedon Sep 1, 2017
This use case is clearly much more important to vscode than to ripgrep. Perhaps this dependency needs to be reconsidered.
Ngranger commentedon Sep 2, 2017
I use multiline/regex frequently in both global and single file searches, mostly for find/replace operations, which forces me to use Dreamweaver to count match instances over 999 or for multiline search and replace when I would prefer being able to just stay in vscode for such things.
jez9999 commentedon Nov 20, 2017
I'm not quite sure why VS Code can't just use built-in JS regular expressions for this?
boyangwang commentedon Jan 4, 2018
+1 on this, much needed
gerwitz commentedon Mar 1, 2018
I have reviewed the project's process documentation, and have found no way to "appeal" an issue's labelling. Given the content of comments here and, especially, the content of the many duplicate issues, I believe this should be labeled
bug.(Yes, I understand it is caused by a dependency, but don't believe that should be relevant to the planning process.)
tommai78101 commentedon Apr 30, 2018
Hans Gerwitz (@gerwitz) May I ask which dependency is causing it? Just trying to follow the discussion.
gerwitz commentedon Apr 30, 2018
Thompson Lee (@tommai78101) see BurntSushi/ripgrep#176
33 remaining items
Implement multiline search for #13155
Multiline match hint UI for #13155. Implement search.showLineNumbers to
rshpeley commentedon Oct 10, 2018
mesqueeb commentedon Oct 10, 2018
raymond shpeley (@rshpeley) I think that's because he finished adding the functionality.
rshpeley commentedon Oct 10, 2018
OliverJAsh commentedon Oct 10, 2018
If this is closed, where can we find more information about the solution?
mesqueeb commentedon Oct 10, 2018
Oliver Joseph Ash (@OliverJAsh) it was just closed today so please be patient for a few days. I'm sure it'll be added to the release notes of a next release of VSCode.
🤗
Quitch commentedon Oct 10, 2018
I mean, you can see it's closed because code was committed, and as if that wasn't enough it was added to the October 2018 milestone, which may hint that perhaps we'll see this in the October release (which means early November).
roblourens commentedon Oct 10, 2018
I tweeted the documentation 🐦
https://twitter.com/roblourens/status/1049866207292088321
It's in Insiders now. You can search in multiline mode if you explicitly include a
\nin your regex, same as in the editor.Multiline matches include a UI hint that the match includes more lines, in the form of e.g.
+3if the match is 4 lines long.tommai78101 commentedon Oct 11, 2018
roblourens Would it differentiate between
\r\n,\n, and\n\rif you only specify\n?jamesone commentedon Oct 18, 2018
You can checkout this: https://marketplace.visualstudio.com/items?itemName=axlan.multiline-find-and-replace It allows you to copy the formatted multi line regexp.
I also noticed that you cannot do multiline regex searches via the GLOBAL SEARCH bar -> It prints an error saying 'Literal \n currently not supported'
roblourens commentedon Nov 15, 2018
That issue is fixed in insiders @gsrafael01