Beautify
Beautify Your String - A VS Code extension for detecting, previewing, and beautifying embedded JSON, Markdown, and escaped strings in your code.
Features
- Detect Embedded Content: Automatically detect embedded JSON, Markdown, and escaped strings in your code files.
- One-Click Beautify: Beautify detected content or selected text with a single command.
- Preview Panel: Instantly preview detected content (JSON, Markdown, etc.) in a side panel with syntax highlighting.
- Copy & Expand: Copy detected content or expand it for easier editing and review.
- Status Bar Integration: Quick access to extension features from the VS Code status bar.
- Context Menu Support: Right-click to beautify or preview content directly from the editor.
- Hover Preview: Hover over detected content to see a formatted preview (optional).
Getting Started
- Install the extension from the VS Code Marketplace.
- Open any code file containing embedded JSON, Markdown, or escaped strings.
- Use the commands or context menu to beautify or preview content.
Commands
Beautify: Beautify — Beautify detected content in the current file.
Beautify: Beautify Document — Beautify all supported content in the document.
Beautify: Beautify Selection — Beautify only the selected text.
Beautify: Detect Document — Detect all embedded content in the document.
Beautify: Copy Detected Content — Copy detected content to clipboard.
Beautify: Expand Detected Content — Expand content for easier editing.
Beautify: Preview Detected Content — Preview content in a side panel.
Beautify: Open Settings — Quickly open extension settings.
Extension Settings
This extension contributes the following settings:
beautify.enableJson — Enable detection and preview of embedded JSON strings. (default: true)
beautify.enableMarkdown — Enable detection and preview of embedded Markdown strings. (default: true)
beautify.enableEscapedString — Enable detection and preview of escaped strings. (default: true)
beautify.enableHover — Enable hover preview for detected content. (default: true)
beautify.showInContextMenu — Show commands in the editor context menu. (default: true)
Requirements
- VS Code 1.116.0 or higher
- No additional dependencies required
Known Issues
- Large files or very complex embedded content may impact performance.
- Hover preview may not work with all file types.
Release Notes
0.0.1
- Initial release with JSON, Markdown, and escaped string detection, beautification, and preview features.
Contributing
Contributions are welcome! Please submit issues or pull requests on GitHub.
Enjoy using Beautify!
| |