> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vxplain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Code-to-Diagram

> Learn how to use Vxplain's Code-to-Diagram feature to generate instant visualizations of code snippets, helping you understand complex logic and control flow.

Generate diagrams from code snippets to quickly understand control flow and business logic. This is particularly useful for analyzing small, complex pieces of code without needing to visualize the entire application.

To use this feature, simply select a piece of code in your editor, right-click, and choose `Vxplain: Generate Diagram`.

<Frame>
  <img src="https://mintcdn.com/vxplain/FHf24DsTSE9UlH1m/images/gif/diagram_usage.gif?s=8ea94957346d9c39e9057c3970ae4c59" alt="Generating a diagram from a selected code snippet in Vxplain" className="rounded-lg" noZoom width="786" height="480" data-path="images/gif/diagram_usage.gif" />
</Frame>
