Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code2UMLNew to Visual Studio Code? Get it now.
Code2UML

Code2UML

yojith

|
111 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code2UML

Build VS Code Marketplace License

Generate UML diagrams from Python, Java, C++, and C projects.

Use it in VS Code

Install Code2UML from the VS Code Marketplace. Then you can:

  • Open the Code2UML icon in the Activity Bar and choose a language.
  • Press Ctrl+Shift+P and run Generate UML for....
  • Right-click a file or folder in Explorer and choose Generate UML for....

The preview can save diagrams as SVG, PNG, PDF, JPG, or draw.io files.

Requirements

The packaged extension supports Windows x64 and includes its own Python runtime. You do not need to install Python or pip.

Install Graphviz, add the directory containing dot.exe to PATH, and restart VS Code. Code2UML uses Graphviz to lay out and render diagrams.

Command line

The CLI is available from a source checkout. It accepts one project type (python, java, cpp, or c) and one or more files or folders:

& .\.venv\Scripts\python.exe -m python2uml --project-type java --output diagram.svg --paths tests\fixtures\java\project1

Graphviz must also be available on PATH when using the CLI.

Developer build

The extension's Python runtime is generated into python-runtime/ and packaged with the VSIX. From a Windows x64 development environment, build it with:

npm run build:runtime:win32-x64

Then compile or package the extension with the normal npm scripts.

License

MIT

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