Skip to content
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

Highlight capturing groups when searching using regex #45665

Closed
habovh opened this issue Mar 13, 2018 · 9 comments
Closed

Highlight capturing groups when searching using regex #45665

habovh opened this issue Mar 13, 2018 · 9 comments
Assignees
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code search Search widget and operation issues

Comments

@habovh
Copy link

habovh commented Mar 13, 2018

When searching using regex, I think it would be useful to differentiate highlighted parts that matches capturing groups in the search results.
This would allow for easier regex replace as well.

In addition to #42715, the captured values recalled using $n in the replace field could also benefit from some kind of highlight/color change, for even easier replace.

@vscodebot
Copy link

vscodebot bot commented Mar 13, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the search Search widget and operation issues label Mar 13, 2018
@roblourens roblourens added the feature-request Request for new features or functionality label Mar 15, 2018
@jcklpe
Copy link

jcklpe commented Jun 27, 2018

I'd like to +1 this.

@Ixohoxi
Copy link

Ixohoxi commented Aug 30, 2018

Absolutely agree with this request. Being able to see each capture group within each match would be extremely helpful.

@RichardJFoster
Copy link

Agreed. I just ran into a scenario where this would have been wonderfully helpful. Instead, it's LinqPad to the rescue. :-)

@roblourens
Copy link
Member

Unfortunately this isn't really feasible. Would need ripgrep support which is probably not likely.

@roblourens roblourens added the *out-of-scope Posted issue is not in scope of VS Code label Oct 9, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 9, 2019

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

@vscodebot vscodebot bot closed this as completed Oct 9, 2019
@Hiestaa
Copy link

Hiestaa commented May 4, 2020

Sad to see this feature request won't be addressed, I was looking for a way to do this precisely. It would make vscode really useful to test and debug custom RegExps if you found a way to bring this feature to the product.

@StoryDevOffical
Copy link

we still need this tiny custom here

@Snailedlt
Copy link

Is this possible to implement as an extension perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code search Search widget and operation issues
Projects
None yet
Development

No branches or pull requests

8 participants