Skip to content

Transform to snake_case #102074

Closed
Closed

Description

@petsuter

VSCode already has the following very useful commands:

  • Transform to Uppercase
  • Transform to Lowercase
  • Transform to Title Case

It would be very useful to also add a similar command to "Transform to snake_case" that transforms the selected text to lowercase after adding underscore characters between each lowercase / uppercase character pair.

For example it should transform the text ExampleOne and Also ExampleTwo to example_one and also example_two.

Maybe consider also adding other variations like "Transform to kebap-case" to adds dash characters instead of underscore characters. There are many (currently 71 results for "snake case") extensions providing this or similar functionality and other variations thereof.

Activity

  1. added
    feature-request
    editor-commands
    on Jul 21, 2020
  2. vscode-triage-bot commented on Jul 21, 2020

    @vscode-triage-bot

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  3. bmreading commented on Jul 21, 2020

    @bmreading

    I'd argue that this is something that could be useful in stuff like Python linters, but doesn't need to be built-in. Snake case is really something that is dependent upon language, and a lot of people don't work in a language that makes heavy use of it.

    One of the strong suits of VS Code is that it is leaner and customizable with lots of extensions. Building in too much generic functionality ends up with something bloated in the long run. We don't want that.

  4. vscode-triage-bot commented on Sep 10, 2020

    @vscode-triage-bot

    This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  5. vscode-triage-bot commented on Sep 18, 2020

    @vscode-triage-bot

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  6. a5hk commented on Nov 14, 2020

    @a5hk
    Contributor

    Alexandru Dima (@alexdima) Would you accept a PR for this?

  7. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Dec 18, 2020
  8. added
    verification-needed
    on Jan 25, 2021
  9. locked and limited conversation to collaborators on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-commandsfeature-requestinsiders-releasedverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions