A Visual Studio Code extension that allows you to debug your HTML files in a 3D perspective. Perfect for visualizing the structure of your HTML documents and exploring the spatial relationships between elements.
-
3D Visualization: View your HTML documents in a 3D space.
⚠️ Important: this only works if your HTML has a body tag!
-
Custom Stacking: Render stack of elements by
DOM
,Z-INDEX
orBOTH
- Reload on Save: Any saved changes will automatically be reflected in the renderer
- Quick HTML Change: Changes rendered HTML based on which editor is active (as long as its a valid HTML)
- View Element Details View information about the element's position, size, layer, etc.
To install the 3D HTML Viewer extension, follow these steps:
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar.
- Search for "3D HTML Viewer" by Aizhe.
- Click Install.
- Open an HTML file in VS Code.
- Press
Ctrl+Shift+3
(Windows/Linux) orCmd(⌘)+Shift+3
(Mac) to activate the 3D viewer. - Customize the view using the available settings.
For more info you can read the guide
If you encounter any issues or have suggestions for improvements, please visit the GitHub repository and submit an issue or pull request.
See changelog here
Uses GPL-3.0 Licensed code from dom3d.js by OrionReed which this project is based on.
GPL-3.0 © Aizhe 2024