Skip to main content
Learn

Install the CALM VSCode Extension

โฑ 4 min read๐ŸŸข Beginner ยท 10-15 minutesEdit on GitHub โ†—

Overviewโ€‹

Install the CALM VSCode extension to visualize your architectures as interactive diagrams and navigate them with a tree view.

Learning objectivesโ€‹

By the end of this tutorial, you will:

  • Install and configure the CALM VSCode extension
  • Visualize your architecture as an interactive diagram
  • Navigate architectures using the tree view
  • Experience live updates as you edit

Prerequisitesโ€‹

Complete Connect Nodes with Relationships first.

Step-by-Step Guideโ€‹

1. Understand What the Extension Providesโ€‹

The CALM VSCode extension gives you:

  • Live Architecture Visualization: Real-time interactive diagram as you edit
  • Tree View Navigation: Sidebar showing all Nodes, Relationships, and Flows
  • Search & Filter: Find elements across your architecture
  • Home Button: Quick navigation back to top-level view
  • Documentation Preview: Live docify mode for template-based docs

2. Install the CALM VSCode Extensionโ€‹

  1. Open VSCode
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "CALM Tools"
  4. Click Install

Marketplace Link: https://marketplace.visualstudio.com/items?itemName=FINOS.calm-vscode-plugin

3. Verify Installationโ€‹

Check that the extension is working:

  1. Look for the CALM icon in the VSCode Activity Bar (left sidebar)
  2. Click it to open the CALM sidebar view
  3. You should see "Model Elements" panel
CALM Model Elements

If you see the CALM sidebar, the extension is installed correctly!

4. Open the Preview Panelโ€‹

Visualize the architecture you've built over Tutorials 2-3.

Steps:

  1. Open architectures/my-first-architecture.json in VSCode
  2. Use one of these methods to open the preview:
    • Keyboard: Press Ctrl+Shift+C (Windows/Linux) or Cmd+Shift+C (Mac)
    • Command Palette: Press Ctrl+Shift+P / Cmd+Shift+P, type "CALM: Open Preview"
    • Right-click: Right-click in the editor and select "CALM: Open Preview"

What you should see:

  • Interactive diagram panel opens next to your JSON editor
  • Visual representation of your nodes (System, Service, Database, Actor)
  • Lines showing relationships (interacts, connects, composed-of)
  • Different visual styles for different node types and relationship types

5. Explore the Tree Viewโ€‹

The CALM sidebar provides a structured view of your architecture:

Steps:

  1. Click the CALM icon in the Activity Bar (left sidebar)
  2. Expand the "Model Elements" tree
  3. You should see sections for:
    • Nodes - All your nodes listed
    • Relationships - All your relationships listed
    • Flows - Any flows (empty for now)

Try this:

  • Click on a node in the tree to focus on it
  • Click on a relationship to see the connection
  • Use the search icon (magnifying glass) to filter elements
  • Use the clear search icon to show all elements

6. Experience Live Updatesโ€‹

See how the preview updates as you edit:

Steps:

  1. Keep the preview panel open
  2. In the JSON editor, change the name property of one of your nodes
  3. Save the file (Ctrl+S / Cmd+S)
  4. Watch the preview panel update automatically with the new name

This live feedback makes iterating on architectures fast and visual!

7. Use the Home Buttonโ€‹

The preview panel has a home button for navigation:

Steps:

  1. In the preview panel, look for the home button (typically in the toolbar)
  2. If you've zoomed or panned the diagram, click home to return to the full view
  3. This resets the view to show your entire architecture

8. Search for Elementsโ€‹

Test the search functionality:

Steps:

  1. In the CALM sidebar tree view, click the search icon (magnifying glass)
  2. Type part of a node name (e.g., "service")
  3. The tree view filters to show only matching elements
  4. Click the clear search icon to show all elements again

This becomes invaluable for large architectures with dozens of nodes!

9. Understand Your Architecture Visuallyโ€‹

Look at your architecture in the diagram:

  1. Open the preview if not already open
  2. Observe the visual structure:
    • Actor โ†’ Service (interacts relationship)
    • Service โ†’ Database (connects relationship)
    • System contains Service (composed-of relationship)

Ask yourself:

  • Does the visual make sense?
  • Can you explain this architecture to someone using the diagram?
  • What would you change to make it clearer?

Key conceptsโ€‹

Preview Panel vs. Tree Viewโ€‹

FeaturePreview PanelTree View
PurposeVisual diagramStructured navigation
Best forUnderstanding connectionsFinding specific elements
UpdateOn saveReal-time
LocationEditor areaSidebar

Keyboard Shortcutsโ€‹

ActionWindows/LinuxMac
Open PreviewCtrl+Shift+CCmd+Shift+C
Command PaletteCtrl+Shift+PCmd+Shift+P

Tipsโ€‹

  • Use the keyboard shortcut โ€” Ctrl+Shift+C / Cmd+Shift+C is the fastest way to open preview
  • Keep preview open โ€” see changes as you edit and save
  • Use tree view for navigation โ€” easier than scrolling through JSON
  • Use search to find specific elements quickly
  • Visualization aids communication โ€” diagrams help explain architectures to others
  • Save to update โ€” preview refreshes when you save the file

Common Pitfallsโ€‹

"The preview panel isn't showing"

  • Make sure you're editing a .json file
  • Try using the Command Palette instead of the keyboard shortcut
  • Check that the extension is installed and enabled

"The diagram looks cluttered"

  • Use the zoom controls to adjust the view
  • Click the home button to reset the view
  • Large architectures may need more screen space

Next stepsโ€‹

In the next tutorial, you'll add interfaces to define how your nodes communicate!