An open API service indexing awesome lists of open source software.

https://github.com/fla9ua/vscode-yaml-preview-ui

VSCode extension for YAML visualization and editing
https://github.com/fla9ua/vscode-yaml-preview-ui

vscode-extension yaml yml

Last synced: about 2 months ago
JSON representation

VSCode extension for YAML visualization and editing

Awesome Lists containing this project

README

          

# YAML Preview UI
[![VS Code Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/fla9ua.yaml-preview-ui?logo=visualstudiocode&label=YAML%20Preview%20UI)](https://marketplace.visualstudio.com/items?itemName=fla9ua.yaml-preview-ui)
[![VS Code Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/fla9ua.yaml-preview-ui)](https://marketplace.visualstudio.com/items?itemName=fla9ua.yaml-preview-ui)
[![VS Code Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/fla9ua.yaml-preview-ui)](https://marketplace.visualstudio.com/items?itemName=fla9ua.yaml-preview-ui)
[![GitHub Repository](https://img.shields.io/badge/GitHub-Repository-black?style=flat-square&logo=github)](https://github.com/fla9ua/vscode-yaml-preview-ui)
[![GitHub Stars](https://img.shields.io/github/stars/fla9ua/vscode-yaml-preview-ui?style=social)](https://github.com/fla9ua/vscode-yaml-preview-ui)

A Visual Studio Code extension that provides visualization and editing capabilities for YAML files.

## Features

- Hierarchical, interactive UI display for YAML files
- Edit mode toggleable with double-click
- Preview display from context menu
- Export to various formats (JSON, Markdown, HTML, XML, PNG)

![sample](https://github.com/user-attachments/assets/f67fdddf-07a8-42f6-9afa-4a511050703a)

## Usage

### Opening the Preview

1. Open a YAML file (`.yaml` or `.yml` extension)
2. Use one of the following methods to display the preview:
- Select "Show YAML Preview" from the command palette (Ctrl+Shift+P / Cmd+Shift+P)
- Right-click in the editor and select "Show YAML Preview" from the context menu

### Navigation and Interaction

- Click on triangle icons next to objects or arrays to expand/collapse
- Use the search box to filter content by key or value
- The breadcrumb navigation at the top shows your current position in the hierarchy

### Editing Mode

- Click the "Edit YAML" button to switch to editing mode
- Double-click on any value to edit it directly
- After editing, click "Show Preview" to apply and view your changes

### Exporting

1. Click the "Export" button in the preview toolbar
2. Select your desired export format:
- JSON: Structured data format
- Markdown: For documentation
- HTML: For web display
- XML: For data interchange
- PNG: For image representation