TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Create Diagrams in VS Code with Draw.io

643 pointsby sharjeelsayedabout 5 years ago

24 comments

tgvabout 5 years ago
There are also plugins for graphviz, which is a more structured language. I use it for documenting states in my code, e.g. <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=tintinweb.graphviz-interactive-preview" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=tintinwe...</a> and <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=joaompinto.vscode-graphviz" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=joaompin...</a>. Since graphviz is old, there are also command line tools to render the output.<p>For more information about graphviz: <a href="https:&#x2F;&#x2F;graphviz.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;graphviz.org&#x2F;</a>
评论 #23140479 未加载
评论 #23141652 未加载
评论 #23139676 未加载
评论 #23140613 未加载
评论 #23150239 未加载
gitgudabout 5 years ago
I think this extension demonstrates the flexibility of VSCode and how easy it can be to extend the platform with an extension.<p>Although it&#x27;s supported by Microsoft, it&#x27;s heavily influenced by the Open-Source community. I believe that&#x27;s the reason it&#x27;s so popular and user-friendly for both developers and users.<p>Can you imagine someone trying to implement this extension on a proprietary platform like Visual Studio or IntelliJ? ... going through proprietary documentation with no access of the Source-Code to the underlying system... It would be a nightmare
评论 #23142755 未加载
评论 #23139615 未加载
评论 #23139776 未加载
评论 #23139654 未加载
评论 #23152094 未加载
davidjgraphabout 5 years ago
The project has an embed mode, which was used in this case.<p>It needs a sequence embed, but basically you load draw in embed mode within an iFrame, do a handshake using postMessage, then load and save is direct between parent and frame, again using postMessage.<p>The idea is to be able to embed into hosts that are capable of storing the diagram data, without any code changes to draw. It can embed either the main site (which was renamed to app.diagrams.net), or a locally hosted&#x2F;internally packaged version of the project.<p>Additional information on the embed format:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jgraph&#x2F;drawio-integration" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jgraph&#x2F;drawio-integration</a><p><a href="https:&#x2F;&#x2F;desk.draw.io&#x2F;support&#x2F;solutions&#x2F;articles&#x2F;16000042544-embed-mode" rel="nofollow">https:&#x2F;&#x2F;desk.draw.io&#x2F;support&#x2F;solutions&#x2F;articles&#x2F;16000042544-...</a>
angrygoatabout 5 years ago
This embeds an offline version of draw.io; I hadn&#x27;t previously realised that this site is open source: <a href="https:&#x2F;&#x2F;github.com&#x2F;jgraph&#x2F;drawio" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jgraph&#x2F;drawio</a><p>Very neat!
评论 #23142956 未加载
eddiegrovesabout 5 years ago
I&#x27;ve been looking at draw.io and PlantUML - what has worked well for others? draw.io is much easier to get into, but I can see declarative diagrams making maintenance easier for long-lived docs.
评论 #23140356 未加载
评论 #23144300 未加载
评论 #23142428 未加载
simplyinfinityabout 5 years ago
Similar (but not that fully featured) is the mermaid preview extension : <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=bierner.markdown-mermaid" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=bierner....</a><p>mermaid js website : <a href="https:&#x2F;&#x2F;mermaidjs.github.io&#x2F;#&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mermaidjs.github.io&#x2F;#&#x2F;</a>
chowardabout 5 years ago
If we could get an extension like this for every file type VS Code could basically become your OS (desktop environment) or file manager at the very least.
评论 #23139614 未加载
评论 #23141716 未加载
评论 #23139345 未加载
boomerangerabout 5 years ago
This is so cool! I would love to see what kinds of people have used it for and built with this within VSCode.
eXpl0it3rabout 5 years ago
That looks quite interesting. Can it detected embedded diagrams in PNG? I usually just save the PNG files, so I don&#x27;t have to separately store the XML file.<p>Also just learned that Draw.io is migrating to Diagrams.net: <a href="https:&#x2F;&#x2F;www.diagrams.net&#x2F;blog&#x2F;move-diagrams-net" rel="nofollow">https:&#x2F;&#x2F;www.diagrams.net&#x2F;blog&#x2F;move-diagrams-net</a>
评论 #23141173 未加载
quickthrower2about 5 years ago
Wow I didn&#x27;t know about draw.io. That thing in itself is amazing.
erk__about 5 years ago
This reminds me a bit of artists-mode in Emacs, though this has much nicer graphics.
fulldecent2about 5 years ago
Now if we could get this for Monodraw I would pay money for that<p><a href="https:&#x2F;&#x2F;monodraw.helftone.com" rel="nofollow">https:&#x2F;&#x2F;monodraw.helftone.com</a>
jonny383about 5 years ago
Wow, nice! I&#x27;ve been using draw.io for a number of years now. It keeps getting better.<p>And this is frankly, amazing!<p>Question to author(s) - how can I support your development of draw.io?
评论 #23139466 未加载
评论 #23139483 未加载
thanksforfishabout 5 years ago
Is there a good list of web based tools that let you load&#x2F;save locally or via cloud storage like draw.io does? diagrams.net is so cool!
mjbrussoabout 5 years ago
VS Code is the new browser. Are there any extension for open a URL in a tab? A browser in a app in a browser!
评论 #23141030 未加载
devnielabout 5 years ago
wow, it&#x27;s great. I&#x27;m using plantuml, but I will try this when looking for more flexibility.
评论 #23140610 未加载
clktmrabout 5 years ago
Isn&#x27;t this just opening the drawio editor in vscode? What&#x27;s the point? (genuine question)
评论 #23140393 未加载
评论 #23148232 未加载
TechBro8615about 5 years ago
Looks cool. However I&#x27;ve created a .drawio file after installing (and reloading) and I do not see any diagram editor. It&#x27;s just a blank space. Is there anything else I need to do? I installed via VSCode extension marketplace.
评论 #23141169 未加载
p2t2pabout 5 years ago
I sleep and dream when VS Code turns into Emacs.
jaequeryabout 5 years ago
this could be really cool if it can tie directly into your ORMs like TypeORM. does anyone know if something like it even exist?
kcindricabout 5 years ago
How can I open my already existing draw.io XML files using this extension?<p>Neat project.
评论 #23141916 未加载
hit8runabout 5 years ago
Why did they rename draw.io to diagrams.net?
评论 #23139990 未加载
评论 #23140620 未加载
tuananhabout 5 years ago
now, do one for excalidraw.com
philliphaydonabout 5 years ago
This is crazy awesome!