0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VsCodeにPlantUMLをインストールする

Posted at

はじめに

VsCode に 拡張機能 'PlantUML' をインストールし、PlantUMLサーバーを使わずに ローカル コンピューター内で PlantUML図を描写する設定を行う。

環境構築

  1. VsCodeをインストールする
  2. Microsoft Build of OpenJDKをインストールする
  3. Graphvizをインストールする

拡張機能をインストールする

① VsCode を実行する。

② Extensions を選択し、 "plantuml" を検索する。
image.png

③ jebbs氏が提供する "PlantUML"を選択し、"Install" をクリックする。
image.png

サンプルを作る

ドキュメント フォルダに "sample.pu"を作成し、プレビューしてみる。

@startuml
title test

' class diagrams
class Class {
  +string field1
  +void method1()
}

@enduml

image.png

ローカルでレンダーする設定を行う。

① "File" - "Preferences" - "Settings" の順に操作し、設定画面を表示する。
image.png

② "plantuml" で検索し、"Planutuml: Render" を "Local" にする。
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?