Based on prettify-symbols-mode
Sick of staring at the steaming pile of garbage that is your "favorite" project's code? Can’t get your team to agree on whether to use !! or Boolean()? Tired of endless arguments over code style?
Say hello to MD Prettify—the extension that slaps a shiny new coat of paint on your source code without ever touching the actual mess underneath! 🎨✨
MD Prettify is your escape hatch from the chaos of ugly code and petty debates. It’s a Visual Studio Code extension that lets you prettify your source code—visually transforming it into something cleaner and more stylish—without changing a single character of the actual file. Think of it as a makeover for your codebase: all the glamour, none of the refactoring drama.
The following commands are available for keybinding:
mdPrettify.enablePrettySymbols
: Flip the magic ON globally.mdPrettify.disablePrettySymbols
: Kill the vibe (why tho?).mdPrettify.togglePrettySymbols
: Switch it up whenever you feel like it!
By default, "ugly" text lights up when contacted by a cursor. Customize it with mdPrettify.revealOn globally or per-language with a revealOn setting in the language entry. Here’s the lineup:
- cursor: Symbols shine when your cursor grazes them (default).
- cursor-inside: Glows when your cursor’s chilling inside the symbol.
- active-line: Every symbol on the cursor’s line gets the spotlight.
- selection: Symbols dazzle when selected or cursor-touched.
- none: Keep it stealth—no reveal, just raw code vibes.
Explore pre-configured substitution settings for various languages in the examples/ directory:
- TypeScript looks like Python: Example substitutions for TypeScript to make it look like Python.
- TypeScript looks like TrumpScript: Example substitutions for TypeScript to make it look like TrumpScript.
- TypeScript looks like YoptaScript: Example substitutions for TypeScript to make it look like YoptaScript.
- TypeScript looks like LOTRScript: Example substitutions for TypeScript to make it look like LotrScript (no links, I just made it).
use mdPrettify.predefinedConfig: "value"
to activate predefined config
- typescript-to-python — Make TypeScript strut like Python. 🐍
- typescript-to-trumpscript — Turn TypeScript into bold TrumpScript swagger. 🦁
- typescript-to-yoptascript — Flip TypeScript to quirky YoptaScript chaos. 😎
- typescript-to-lotrscript — Flip TypeScript to middle age with LOTRScript. 😎
Feel free to contribute your own configurations for other languages!
Complete guide, how to Build Your Custom Config
If you find this extension useful, please consider donating to support its development: