Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>STTR - String TransformerNew to Visual Studio Code? Get it now.
STTR - String Transformer

STTR - String Transformer

Alex Svetkin

|
1 install
| (0) | Free
Transform selected text using the powerful sttr CLI utility
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

STTR - String Transform for VS Code

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

  1. Select text in any editor
  2. 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"
  3. Choose a transformation from the quick pick menu
  4. The selected text will be replaced with the transformed result

Available Transformations

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

Format Conversion

  • JSON formatting and escaping
  • JSON ↔ YAML conversion
  • Markdown to HTML

Text Extraction

  • 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft