
String Manipulation for VSCode
This extension provides string manipulation commands for any selected text as well
as multiple selections.
Current string functions available:
- camelize - converts hyphenated strings to camelCase
- capitalize - capitalizes the first character of each selection
- classify - converts underscored text to PascalCase
- chop - splits into groups provided n # of characters
- clean - collapses multiple spaces into one
- clean diacritics - removes diacritic marks from characters
- dasherize - converts camelCase to kebab-case
- decapitalize - lowercases the first character of each selection
- humanize - converts text to human-readable form
- reverse - reverses the characters in the selection
- screaming snake - converts text to SCREAMING_SNAKE_CASE
- sentence - transforms text to sentence case
- slugify - converts text to a URL-friendly slug
- snake - converts text to snake_case
- swap case - inverts the case of each character
- titleize - capitalizes the first letter of each word
- titleize (AP Style) - capitalizes titles according to AP style
- titleize (Chicago Style) - capitalizes titles according to Chicago style
- truncate - trims string to n # of characters and appends ellipsis
- prune - truncate but keeps ellipsis within character count provided
- repeat - repeat selection n # of times
- random case - randomly changes the case of characters
- swap quotes - swaps between single and double quotes
- utf8ToChar - converts Unicode escapes to characters
- charToUtf8 - converts characters to Unicode escapes
Number related functions:
- increment - increases all numbers in the selection by 1
- decrement - decreases all numbers in the selection by 1
- duplicate and increment - duplicates selection and increments all numbers
- duplicate and decrement - duplicates selection and decrements all numbers
- sequence - replaces numbers with a sequence starting from the first number
- incrementFloat - increases all floating point numbers in the selection by 1
- decrementFloat - decreases all floating point numbers in the selection by 1
Additional utility commands:
- repeat last action - repeats the last string manipulation command that was executed
Use
To use these commands, press ⌘+p and enter any of the commands above while text is selected in your editor.

The extension now includes a powerful preview feature that allows you to see how each transformation will affect your text before applying it.
How to Use the Preview Feature
- Select the text you want to transform
- Right-click to open the context menu
- Choose "Show Transformations with Preview"
- Browse through the available transformations with instant previews
- Select a transformation to apply it to your text
This feature makes it easier to find the right transformation without trial and error.

🧪 Introducing Labs Features
Introducing String Manipulation Labs
We're excited to announce the launch of String Manipulation Labs—a collection of (really just one at this moment) experimental features designed to enhance and expand the capabilities of the String Manipulation extension. Labs features are disabled by default to ensure a stable experience with the core functionalities.
🚀 How to Enable Labs Features
To try out the new Labs features, follow these simple steps:
1. Open VSCode Settings:
• Press Ctrl + , (Windows/Linux) or Cmd + , (macOS), or navigate to File > Preferences > Settings.
2. Search for Labs Settings:
• In the search bar, type stringManipulation.labs.
3. Enable Labs Features:
• Toggle the String Manipulation Labs setting to On.
🛠️ We Value Your Feedback
Since Labs features are experimental, your feedback is invaluable! Let us know your thoughts, report any issues, or suggest improvements to help us refine these tools.
Thank you for using String Manipulation!
Your support helps us build better tools for the community.
