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

Feature request: multiple cursors case retaining editing #18818

Closed
wmertens opened this issue Jan 19, 2017 · 3 comments
Closed

Feature request: multiple cursors case retaining editing #18818

wmertens opened this issue Jan 19, 2017 · 3 comments
Labels
editor-multicursor Editor multiple cursor issues feature-request Request for new features or functionality
Milestone

Comments

@wmertens
Copy link

Many times when I'm adjusting code, I'm copying it from some other code and then changing names that appear at different locations in camelCase. E.g. changing userType and getUserMode to playerType and getPlayerMode.

Using multiple cursors, you can case-insensitively match user, but when you then type player, the second word becomes getplayerMode and you need to go hunt for all the places were you need to fix it.

It would be great if multicursor could have a case retaining mode so that uppercase letters would be replaced with an uppercase letter. So, you'd select user, and the upper/lower shape of the selected words is retained while you are typing.

@dbaeumer dbaeumer added editor editor-multicursor Editor multiple cursor issues labels Jan 20, 2017
@alexdima alexdima added the feature-request Request for new features or functionality label Jan 20, 2017
@alexdima alexdima added this to the Backlog milestone Jan 20, 2017
@alexdima alexdima removed their assignment Jan 20, 2017
@wmertens
Copy link
Author

wmertens commented Mar 2, 2017

I have come to the conclusion that all this feature would need is retaining the capitalization of the first letter of the selections that are being replaced.

The reason is that camelCase is consistent inside words, just not at the beginning of words.

If multiple cursors are used but no longer select something, there shouldn't be any capitalization retaining.

@alexdima alexdima removed the editor label Nov 24, 2017
@cdfuller
Copy link

Related: #9798

@wmertens
Copy link
Author

wmertens commented Jan 7, 2019

Hmm indeed this is a duplicate of #9798. Maybe just retaining initial case is a simpler feature but I'll close this anyway.

@wmertens wmertens closed this as completed Jan 7, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-multicursor Editor multiple cursor issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants