Skip to content

Snippet variables kebabcase transform #145654

Open
@RayPS

Description

Currently we have upcase, downcase, capitalize, camelcase, pascalcase transforms.

Example for adding kebabcase transform:

TM_FILENAME_BASE is UserProfileItem

"${TM_FILENAME_BASE/(.*)/${1:/kebabcase}/}"

Result:

user-profile-item

Also suggesting other cases that could be useful.

Case Result Already Have
camelcase userProfileItem
pascalcase UserProfileItem
kebabcase user-profile-item
snakecase user_profile_item
dotcase user.profile.item
slashcase user/profile/item
titlecase User Profile Item
sentencecase User profile item

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions