This is a WIP community resource, containing contribution from community members.
Markdown All in One plugin can be used to preview .md
files in real-time while editing them in VS Code. This is useful for editing README files, documentation, and tutorial content.
The plugin helps mainly by,
Install
.You should now see a new preview option when working with Markdown files.
To preview the Markdown side-by-side with your .md
file:
.md
file (e.g. README.md)For more information, view the Markdown All in One documentation here.
PlantUML is a tool for specifying various diagrams in a textual form. It is particularly useful in software projects where you want to update the diagrams incrementally, as the project evolves over time.
The sections below explain how to install PlantUML. For more tips on using PlantUML in a project, click here
Go to Extentions
> Search PlantUML
> Install the PlantUML plugin by jebbs
Ctrl+P
| Cmd+P
, paste the following command, and press enter:
ext install plantuml
Install Graphviz (for best compatibility to render diagrams)
PATH
brew install graphviz
sudo apt install graphviz
Configure PlantUML in VS Code
java
(if not auto-detected):
plantuml.java: "C:\\Program Files\\Java\\jdk-11\\bin\\java.exe"
plantuml.java: "/usr/bin/java"
Add plantuml.server: "https://www.plantuml.com/plantuml"
After installing the PlantUML integration
plugin, simply create or open any .puml
file to start editing it.
Any changes you make in editor pane on the left will be reflected in the preview pane on the right. However, do take note that these changes will not be reflected in your actual documentation until you export the diagram.
Saving the Diagram as an image
When using MarkBind as the site generation tool:
When Using Other Tools (e.g. Jekyll, Static Site Generators, or Docs):
Alt+D
| option+D
or right-click → Preview Current Diagram)/docs/images/
).Ctrl+Shift+P
| Cmd+Shift+P
) → PlantUML: Export All Diagrams.git add
newly exported image files if they’re part of your repo.You can refer to this se-edu guide to learn some tips and tricks useful for getting the diagrams to fit your needs.
Contributors: Sulaksha Muthukrishnan (@crmlatte)