GithubHelp home page GithubHelp logo

shadowkun / vscode-drawio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hediet/vscode-drawio

0.0 1.0 0.0 5.09 MB

This unofficial extension integrates Draw.io into VS Code.

Home Page: https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio

License: GNU General Public License v3.0

TypeScript 95.26% HTML 4.74%

vscode-drawio's Introduction

Draw.io VS Code Integration

This unofficial extension integrates Draw.io into VS Code.

Features

  • Edit .drawio, .dio or .drawio.svg files in the Draw.io editor.
  • To create a new diagram, simply create an empty *.drawio or *.drawio.svg file and open it!
  • .drawio.svg are valid .svg files that can be embedded in Github readme files! No export needed.
  • To convert a Draw.io file from .drawio to .drawio.svg, use the File: Save As command.
  • Uses an offline version of Draw.io by default.

Demo

Editing .drawio.png Files (Not Released Yet)

This feature is not released yet as it uses unstable VS Code APIs. This feature might be stable in the next release of VS Code .

You can directly edit and save .drawio.png files. These files are perfectly valid png-images that contain an embedded Draw.io diagram. Whenever you edit such a file, the png part of that file is kept up to date.

The logo of this extension is such a .drawio.png file that has been created with the extension itself!

Settings

This extension contributes the following settings:

Available Draw.io Themes
  • Theme "atlas"

    atlas
  • Theme "Kennedy"

    Kennedy
  • Theme "min"

    min
  • Theme "dark"

    dark

Associate .svg Files With This Editor

By default, this extension only handles *.drawio.svg files. Add this to your VS Code settings.json file, if you want to associate it with .svg files:

"workbench.editorAssociations": [
    {
        "viewType": "hediet.vscode-drawio-text",
        "filenamePattern": "*.svg"
    }
]

You won't be able to edit arbitrary SVG files though - only those that have been created with Draw.io or this extension!

Editing the Diagram and its XML Side by Side

You can open the same *.drawio file with the Draw.io editor and as xml file. They are synchronized, so you can switch between them as you like it. This is super pratical if you want to use find/replace to rename text or other features of VS Code to speed up your diagram creation/edit process. Use the File: Reopen With... command to toggle between the text or the Draw.io editor. You can open multiple editors for the same file.

Contributors

  • Henning Dieterichs, hediet on Github (Main Contributor / Author)
  • Vincent Rouillé, Speedy37 on Github

See Also / Similar Extensions

  • Draw.io - This extension relies on the giant work of Draw.io. Their embedding feature enables this extension! This extension bundles a recent version of Draw.io.
  • vscode-drawio by eightHundreds.

Other Cool Extensions

If you like this extension, you might like my other extensions too:

  • Debug Visualizer: An extension for visualizing data structures while debugging.
  • Tasks Statusbar: This extension adds buttons to the status bar to quickly start and kill tasks.

vscode-drawio's People

Contributors

hediet avatar maxymvlasov avatar mtsknn avatar speedy37 avatar

Watchers

 avatar

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.