Preview DBML code from Vscode

A full-stack JavaScript developer. Using tools like React/Next and Nest to build project that make something better. My slogan is : I help build the tools of tomorrow.
Search for a command to run...

A full-stack JavaScript developer. Using tools like React/Next and Nest to build project that make something better. My slogan is : I help build the tools of tomorrow.
When implementing a slider in React Native, many developers instinctively turn to external libraries, assuming that creating a slider from scratch is a complex task. However, what may seem like a daunting challenge is actually much simpler to accompl...

Diving into the depths of React.js source code or embarking on a journey of reverse engineering can be an exhilarating endeavor. To complete your journey, you'll need a small React application to act as your compass. So, how can you preview this smal...

If you are a Prisma user, I have great news for you. This about a VsCode extension that let you visualize your Prisma code in ERD directly in your VsCode Editor. That give you more readability of your database schema. The extension has some interesti...

If you're a dbdocs or dbdiagram user, you've probably written DBML code from your editor (Vs code ). This extension enhances your experience by allowing you to view your DBML code in an ERD ( Entity Relation Diagram ) from your editor.
Go to the extensions tab in your editor, search for DBML Entity-Relationship Diagrams visualizer and install it.

In your workspace, create a file with the .dbml extension and write your DBML code in it ( code example below )
Table users {
id integer
username varchar
}
Table posts {
id integer [primary key]
title varchar
body text [note: 'Content of the post']
user_id integer
}
Ref: posts.user_id > users.id // many-to-one
When you're in a .dbml file, you'll see a preview icon in the top right-hand corner of the editor's title bar.

When you click on this button, a new tab opens on the side displaying the preview.
You can move tables, zoom in on the scene and even move around within it.
Enjoy