Join the Webstudio community

Updated last month

Enhanced code editing?

At a glance

The post discusses an idea for a code editing UI in Webstudio, where the community member proposes maintaining access to the canvas while editing code, improving the code editing experience, and providing access to settings and styling without changing tabs. The idea also includes potentially using one of the editing blocks for variables, API, or CSS variables, without overlaying the canvas. The community member wonders about having full access to CSS editing in a code editor, similar to Advanced Mode but with a more traditional IDE experience. The drawback mentioned is the screen space required, but the community member suggests the panes could be resizable like in dev tools.

The comments are mixed, with one community member seconding the idea, while others express concerns about the canvas space being taken up by the code editor, and question whether technical designers would want to see code that often. Some community members suggest the code view could be an alternative to the canvas, rather than in addition to it, as both require space. Another community member suggests a shortcut to open the HTML element window directly on the canvas, rather than navigating through the Settings Editor.

There is no explicitly marked answer in the comments.

I cut this together as an idea just for fun. I know there has been talk and some issues opened around code editing UI for Webstudio. The idea with this would be:
  • maintaining access to canvas while editing code,
  • improved code editing experience,
  • access to settings and styling without changing tabs,
  • potentially using one of the editing blocks for vars, api stuff, or CSS vars -- again, without popping over the canvas.,
  • I wonder about one day having full access to CSS editing in a code editor (like Advanced Mode but a more traditional IDE experience)?,
Drawback is of course screen space. But even at 1440 height, it's totally reasonable. Not sure about 1080. My thought is that you could resize the panes like in dev tools.
M
O
I
6 comments
This is eating away a lot of the canvas space. I wonder who is the person who wants to have access to code, css and style panel at the same time ... if you are a technical designer, you will prefer to see code less often, probably as little as possble
I thought that code view would be instead of canvas, not in addition, simply because to view code you usually need space and also to view canvas you need space
on the oher hand there is probably a way to decide where you want to see it, depending on what you do
I'd be happy just having a command-click shortcut to open the window for the HTML element directly on the canvas, rather than having to select the element, go into the Settings Editor, click into the field there, click to open the window, then click again to expand it... Making incremental, small changes becomes a real chore...
I think you mean HTML Embed component, the topic here is full code editor for everything on canvas
Add a reply
Sign up and join the conversation on Discord