Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>JP UML DiagramsNew to Visual Studio Code? Get it now.
JP UML Diagrams

JP UML Diagrams

Ueda-i

|
3 installs
| (0) | Free
Draw flowcharts, sequence diagrams, class diagrams and file trees in the Markdown preview with a Mermaid-based syntax that is easy to write in Japanese.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JP UML Diagrams for VS Code

Markdown の ```jp_uml ブロックを、VS Code の Markdown プレビューで図にします。 記法は Mermaid がベースで、日本語で書きやすいように拡張しています。Obsidian プラグイン「JP UML Diagrams」と同じ記法・同じ描画エンジンです。

Draw flowcharts, sequence diagrams, class diagrams and file trees in the VS Code Markdown preview, with a Mermaid-based syntax that is easy to write in Japanese. English summary below.

プレビューの例

できること

  • 4種類の図:フローチャート、シーケンス図、クラス図、ツリー図(ファイル構成図)
  • Markdown プレビューにそのまま表示:VS Code 標準のプレビュー(Ctrl+Shift+V / Cmd+Shift+V)で図になります。ほかの拡張機能は要りません
  • SVG で保存・コピー:エディタの ```jp_uml の上に出る「SVG で保存」「SVG をコピー」から。保存先はノートと同じフォルダで、名前は「ノート名-図1.svg」(front matter に title があれば「ノート名-タイトル.svg」)。Excel・Word・PowerPoint に貼っても色が崩れない形で書き出します
  • ツリー図からフォルダ・ファイルを作成:ツリー図の上に出る「フォルダ・ファイルを作成」で、ノートと同じフォルダ(または選んだフォルダ)の下に、図のとおりのフォルダと空のファイルを作ります。作る前に一覧で確認でき、すでにあるものは上書きしません
  • フォルダからツリー図を作成:エクスプローラーでフォルダを右クリック →「ツリー図としてコピー」。コマンド「フォルダからツリー図を挿入」なら、Markdown のカーソルの位置に入れます。読まない名前は設定 jpUml.treeExclude で変えられます
  • 誤りのお知らせ:書き方の誤りは、プレビューの図の代わりに表示し、エディタにも波線と「問題」パネルで出します
  • アイコン:Lucide のアイコン(約1500個)を同梱しています。fa:fa-user のような Font Awesome の名前は、同じ意味の Lucide のアイコンで描きます。アイコンの形(A@{ icon: "lucide:house" })では Lucide の名前も使えます。保存した SVG にもそのまま入ります
  • テーマに合わせた色:ライト・ダークのどちらでも見やすい色で描きます

書き方の例

```jp_uml
フロー
  開始([開始]) --> 入力[/データを入力/]
  入力 --> 判断{正しい?}
  判断 --> 保存[(保存)]
  判断 --> 入力
  赤: 判断
```

条件分岐には「はい」「いいえ」が自動で付き、線は直角に引かれます。

```jp_uml
シーケンス
  U=利用者 A=受付 D=DB
  U->>A: 申し込み
  A->>D: 登録
  alt 成功
    A-->>U: 完了
  else 失敗
    A-->>U: エラー
  end
```
```jp_uml
クラス図
  動物 <|-- 犬
  動物 : +int 年齢
  飼い主 "1" --> "*" 動物 : 飼う
```
```jp_uml
ツリー
my-app/
  src/          # ソースコード
    main.ts     ← 入口
  package.json
  .md: 紫
```

記法の詳しい説明は 記法ガイド(README.ja.md) を見てください。

コマンド

コマンド 内容
JP UML: 図を SVG で保存 カーソルのある図(なければ選んだ図)を保存
JP UML: 図を SVG としてコピー 同じく、SVG の文字としてクリップボードへ
JP UML: このノートの図をすべて SVG で保存 ノートの中の図をまとめて保存
JP UML: ツリー図からフォルダ・ファイルを作成 ツリー図のとおりにフォルダと空のファイルを作る
JP UML: フォルダからツリー図を挿入 選んだフォルダの中身をツリー図にして、カーソルの位置に入れる
JP UML: ツリー図としてコピー 選んだフォルダの中身をツリー図にしてコピー(エクスプローラーの右クリックにもあります)

プレビューの図の右上の「SVGをコピー」からもコピーできます。

設定

設定 既定 内容
jpUml.codeLens true ブロックの上に「SVG で保存」「SVG をコピー」を出す
jpUml.diagnostics true 記法の誤りを波線と「問題」パネルで知らせる
jpUml.treeExclude .git node_modules .DS_Store .obsidian .trash フォルダからツリー図を作るときに読まない名前

注意

  • 保存した SVG の文字の幅は見積もりで決めるため、プレビューとわずかに違うことがあります
  • 外部への通信はしません。click のリンクは http(s) の URL だけ開けます

English

JP UML Diagrams renders ```jp_uml code blocks in the built-in Markdown preview. The syntax is based on Mermaid, with Japanese keywords, Japanese color names (赤: A B), automatic yes/no labels on decisions and right-angled lines.

  • Diagram types: flowchart (flowchart / フロー), sequence diagram (sequenceDiagram / シーケンス), class diagram (classDiagram / クラス図) and file tree (tree / ツリー).
  • Save as SVG / Copy SVG links appear above each block in the editor. Saved files go next to the note and keep their colors in Excel, Word and PowerPoint.
  • Create folders and files above a file tree creates its folders and empty files next to the note (or in a folder you pick). Nothing is overwritten.
  • Copy as tree diagram on a folder in the Explorer (or the insert command) turns a folder into a file tree.
  • Syntax errors are shown in the preview, as squiggles in the editor, and in the Problems panel.
  • About 1,500 Lucide icons are bundled. Font Awesome names such as fa:fa-user are drawn with the matching Lucide icon. No network access.

The full syntax guide is at github.com/0510utree/jp-uml.

License

MIT. Lucide icons are bundled under the ISC license; see THIRD_PARTY_NOTICES.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft