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

Regex Search/Replace: Transform group to lowercase #26489

Closed
fredrikhr opened this issue May 11, 2017 · 2 comments
Closed

Regex Search/Replace: Transform group to lowercase #26489

fredrikhr opened this issue May 11, 2017 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality search-replace Search and replace issues
Milestone

Comments

@fredrikhr
Copy link

In a Search-and-Replace operation that uses Regular Expressions it should be possible to apply simple transformations on capture groups, like lowercase or uppercase a capture group.

This would be extremely useful when you for example would like to turn all fields in a C# class into auto-properties and hence would like to PascalCase all identifiers.

In Sublime and TextMate this can be accoplished by using \L$1 to lowercase capture group 1.

  • VSCode Version: 1.12.1
  • OS Version: Microsoft Windows [Version 10.0.14393]
@sandy081 sandy081 added this to the Backlog milestone May 12, 2017
@sandy081 sandy081 added feature-request Request for new features or functionality search Search widget and operation issues labels May 12, 2017
@pipwilson
Copy link

I think this is a dupe of #12185.

@sandy081 sandy081 added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 4, 2017
@vscodebot
Copy link

vscodebot bot commented Dec 4, 2017

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Dec 4, 2017
@sandy081 sandy081 added search-replace Search and replace issues and removed search Search widget and operation issues labels Dec 4, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality search-replace Search and replace issues
Projects
None yet
Development

No branches or pull requests

3 participants