우선 VS Code에서 PlantUML을 사용하기 위해 해당 확장 기능을 설치합니다.
https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml
PlantUML - Visual Studio Marketplace
Extension for Visual Studio Code - Rich PlantUML support for Visual Studio Code.
marketplace.visualstudio.com
그리고 plantuml로 작성된 파일을 diagram으로 변환해 주기 위한 프로그램을 설치합니다.
Quick Install for Mac
brew install --cask temurin
brew install graphviz
Quick Install for Windows
The plugin has an integrated copy of plantuml.jar and GraphViz, so you are normally good to go. But if you want to use your own jar or a different version of GraphViz (maybe a newer version, or with many dependent jars):
- download the latest plantuml.jar or install it using chocolatey (see below).
- specify the jar location with the extension setting plantuml.jar.
- specify the GraphViz installation by defining the Windows environment variable GRAPHVIZ_DOT, e.g., c:\program files\graphviz\bin\dot.exe if you installed plantuml with chocolatey, which automatically installs the latest GraphViz as a dependency.
Choco install
For windows users, majkinetor introduced a way to install plantuml and its dependencies easily. Run cmd.exe as Administrator, and run two commands as follows (the first command is not needed and will fail if you already have chocolatey installed).
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install plantuml
If you've installed java, but still prompts "java not installed", please add java bin path to PATH environment variable.
혹시 설치가 되지 않는다면,
C:\Windows\System32>@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
경고: An existing Chocolatey installation was detected. Installation will not continue. This script will not overwrite
existing installations.
If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation
again.
Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.
If the existing installation is not functional or a prior installation did not complete, follow these steps:
- Backup the files at the path listed above so you can restore your previous installation if needed. - Remove the existing installation manually. - Rerun this installation script. - Reinstall any packages previously installed, if needed (refer to the lib folder in the backup). Once installation is completed, the backup folder is no longer needed and can be deleted.
C:\Windows\System32>choco
'choco'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
해당 디렉토리 삭제 후 해 보세요.
plantuml 로 작성된 파일을 우클릭하면 Preview Current Diagram( Alt + D) 를 클릭하면 내용을 볼 수 있다.
아래와 같이 테마를 제공하나 실제 적용은 쉽지 않았습니다.
https://github.com/plantuml/plantuml/tree/master/src/main/resources/themes
plantuml/src/main/resources/themes at master · plantuml/plantuml
Generate diagrams from textual description. Contribute to plantuml/plantuml development by creating an account on GitHub.
github.com
https://the-lum.github.io/puml-themes-gallery/themes/#materia-theme
Themes Overview
A gallery of all the themes included with PlantUML.
the-lum.github.io
'IT > Etc' 카테고리의 다른 글
n8n 환경변수 확인 방법 (0) | 2025.04.08 |
---|---|
데이터 엔지니어링 on Google Cloud (3/4) (0) | 2025.04.07 |
데이터 엔지니어링 on Google Cloud (2/4) (1) | 2025.04.07 |
데이터 엔지니어링 on Google Cloud (1/4) (0) | 2025.04.07 |
Docker Desktop 대안 Rancher, Podman and Colima (0) | 2025.03.20 |
댓글