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

Missing Sublime Text command - Change case of selection #14096

Closed
waderyan opened this issue Oct 20, 2016 · 6 comments
Closed

Missing Sublime Text command - Change case of selection #14096

waderyan opened this issue Oct 20, 2016 · 6 comments
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality

Comments

@waderyan
Copy link

waderyan commented Oct 20, 2016

While building this extension to map Sublime Text default keyboard shortcuts to VS Code, I found that this feature is missing.

The feature is changing the case of the selection to upper and lower case.

Default Sublime Text keybindings

Case change Windows / Linux Mac
Upper case ctrl+k ctrl+u cmd+k cmd+u
Lower case ctrl+k ctrl+l cmd+k cmd+l

upper_lower_case

Today an extension exists with this functionality. I think this is a good feature to bring into the core of the product.

@gandhis1
Copy link

As there are extensions to do this (https://github.com/wmaurer/vscode-change-case), I think there's sufficient demand for this feature, and reason to include it for all users. Definitely essential for any text-editor.

@waderyan
Copy link
Author

@gandhis1 thank you for your feedback. I opened this issue so I agree with you. I've been trying to come up with specific use cases where this is helpful. Can you help me by adding a couple others?

Use Cases:

  1. Constants are often all caps. While refactoring you may want to change a variable to use all caps.
  2. Inverse of 1.

@gandhis1
Copy link

I mostly use it to correct improperly formatted SQL queries (keywords should be capitalized, and names lowercase).

@tangmi
Copy link

tangmi commented Nov 3, 2016

This feature composes especially well with multi-cursor selections.

As a result, it's very useful for "generating" (read: typing by hand) boilerplate code from a list of stuff. E.g. if one has the identifiers foo, bar, and baz, and wants to make getFoo() { } and so on, they can simply select the first letters of each of the identifiers, uppercase, and prepend with get.

I often hop out of Visual Studio into Sublime Text to generate methods or write lists of method calls or something similar using the uppercase/lowercase feature--however the change-case extension mentioned earlier provides way more functionality that all seems useful.

@lipis
Copy link

lipis commented Nov 7, 2016

When pasting multiple things from variables/enums.. then you can multi select the first letters and transform them into capital letters if you want to use them as labels :)

@mjbvz mjbvz added the *extension-candidate Issue identified as good extension implementation label Sep 20, 2018
@vscodebot
Copy link

vscodebot bot commented Sep 20, 2018

We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Sep 20, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

6 participants