DEV Community

Simon Brown
Simon Brown

Posted on

5

Structurizr quick tip: hiding descriptions

By default, Structurizr will include an element's descriptive text inside of that element when rendering a diagram:

Diagram with element descriptions

While that level of information definitely enriches the diagram, there are situations where you might not want to show the descriptive text, for example if you're doing a presentation. For this reason, Structurizr allows you to hide the descriptive text in a couple of ways.

When you're viewing a diagram, pressing the d key will toggle the descriptions on and off:

Diagram without element descriptions

If you'd like to hide the descriptions a little more permanently, you can use a style for the Element tag, setting the description property to false. For example, with the Structurizr DSL:

styles {
  element "Element" {
    description false
  }
  ...
}
Enter fullscreen mode Exit fullscreen mode

As a bonus tip, you can also increase the font size in a similar way, to enlarge the text for presentation purposes:

Diagram without element descriptions, with a larger font size

Summary

The descriptive text can be useful, but sometimes you don't need to see it. Structurizr makes it easy to show/hide element descriptions, without needing to modify your diagram.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay