Transform selected text using the powerful sttr CLI utility directly within VS Code.
Features
- 80+ string transformations including encoding, hashing, case conversion, and formatting
- Context menu integration - Right-click on selected text to transform
- Command palette support - Access via
STTR: Transform Text
- Comprehensive transformations organized by category:
- Encode/Decode (Base64, URL, HTML, Hex, Morse, etc.)
- Hash functions (MD5, SHA1, SHA256, BCrypt, etc.)
- String case (camelCase, PascalCase, kebab-case, etc.)
- Line operations (sort, reverse, unique, count)
- Format conversion (JSON, YAML, Markdown)
- Text extraction (emails, URLs, IPs)
- And much more!
Requirements
This extension requires the sttr CLI utility to be installed on your system.
Installation Instructions
macOS (Homebrew - Recommended):
brew install abhimanyu003/sttr/sttr
Windows (Winget):
winget install -e --id abhimanyu003.sttr
Linux (Quick Install):
curl -sfL https://raw.githubusercontent.com/abhimanyu003/sttr/main/install.sh | sh
Universal (Go):
go install github.com/abhimanyu003/sttr@latest
For more installation options, visit the sttr GitHub repository.
Usage
- Select text in any editor
- Right-click and choose "Transform Text" from the context menu
- OR use the Command Palette (
Cmd+Shift+P / Ctrl+Shift+P ) and search for "STTR: Transform Text"
- Choose a transformation from the quick pick menu
- The selected text will be replaced with the transformed result
Encode/Decode
- ASCII85, Base32, Base64, Base85, Base64 URL
- HTML entities, URL encoding
- ROT13, Morse code, Hex
Hash Functions
- MD5, SHA1, SHA256, SHA512
- BCrypt, XXH64
String Case
- camelCase, PascalCase, kebab-case, snake_case
- UPPER CASE, lower case, Title Case
- Reverse text, slug-case
Line Operations
- Sort, reverse, shuffle lines
- Count lines, unique lines
- Add line numbers
- JSON formatting and escaping
- JSON ↔ YAML conversion
- Markdown to HTML
- Extract emails, URLs, IP addresses
And More!
- Remove spaces/newlines
- Escape quotes, zero padding
- Character/word/line counting
- Color conversion (Hex to RGB)
Commands
STTR: Transform Text - Transform selected text
STTR: Show Available Transformations - View all available transformations
Extension Settings
This extension does not contribute any VS Code settings.
Known Issues
- The sttr CLI utility must be installed and available in your system PATH
- Some transformations may not work with empty or invalid input
Contributing
Issues and feature requests are welcome! Please visit the GitHub repository.
License
This extension is licensed under the MIT License. See the LICENSE file for details.
The sttr CLI utility is developed by abhimanyu003 and is also MIT licensed.
| |