Giter Site home page Giter Site logo

vscode-yuml's Introduction

yUML extension

yUML extension for Visual Studio Code. Allows the creation of offline UML diagrams based on the yUML Syntax.

Features

  • Syntax highlighting of .yuml files
  • Currently, the following diagram types are supported:
    • Class
    • Activity
    • Use-case
    • State
    • Deployment
    • Package
  • Update of yUML diagrams after each file save
  • Additional directives for altering diagram type and orientation
  • Embedded rendering engine: No need to call an external web service
  • Code snippets with samples of each diagram

yUML extension screenshots

yUML syntax

Please refer to the wiki page

Invocation methods

Once a .yuml file is open, the viewer window can be invoked in two ways:

  • By opening the command pallete and [partially] typing: view yuml diagram (see the screenshot above)
  • By clicking the preview icon in the editor title area (see below)
  • [Only for VSCode 1.3.x] By right clicking on the document's title tab and selecting the option: View yUML Diagram

title icon

Snippets

There is a snippet for each diagram type. Just start typing one of the available diagram types: class, activity, usecase, state or deployment, package and a full example will be pasted into the yuml file.

yUML snippet screenshot

Top bar

A newly added topbar (see below) will show some useful links when hovered, for accessing the wiki page, writing a review, reporting bugs and requesting new features.

yUML snippet screenshot

Extension Settings

No settings yet.

Dependencies

This extension has not dependencies. It contains a frozen version of viz-lite.js (see viz.js). Newest versions have a bug that caused issue #23. No other product or library is needed and thus the installation process is quietly simple across platforms.

Issue reporting

If you have experience developing Visual Studio Code extensions, please propose a detailed solution for any reported issue or feature request.

Roadmap

  • Completion of other diagram types: sequence, components, etc.
  • Diagram nesting
  • Intellisense for colors

Credits

  • Syntax and some examples taken from yuml.me
  • This extension uses a Javascript port of Dot/Graphviz called viz.js
  • The yuml-to-dot translator is loosely based on a Python project called scruffy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.