The VS Code extension does not allow layers to be hidden or shown.
Author: devgalopCreated Sep 4, 2026Updated Sep 4, 2026
Context
The online version of draw.io allows you to design in layers. You can configure some functionalities to show or hide a specific layer. To do this, click on 'View', then 'Layers', and create all the layers you need. After that, you can create any figure and assign an action to it with these steps:
- Click on the figure.
- Click on the edit link.
- Click on 'Action'. Finally, you can configure any of these instructions.
Show data:
page/json, {"actions":[{"show":{"layers":["Layer_Name"]}}]}Hiding:
data:page/json, {"actions":[{"hide":{"layers":["Layer_Name"]}}]}.Problem
VsCode extension doesn't have the action button
Source: hediet/vscode-drawio