适用于 Cursor 浏览器的可视化编辑器
A visual editor for the Cursor Browser

原始链接: https://cursor.com/blog/browser-visual-editor

Cursor 推出了一款新的浏览器可视化编辑器,弥合了设计与代码之间的差距。该工具允许开发者通过**拖放元素**、通过带有视觉控件(滑块、调色板等)的侧边栏**检查和调整组件属性**,甚至使用简单的提示语(例如“放大这个”)**描述更改**,从而直接操作 Web 应用界面。 该编辑器的工作方式是让用户视觉上调整设计,然后由代理自动更新底层代码。它支持测试组件状态,并提供对布局和排版的精确控制。 最终,Cursor 旨在通过启用更直观的工作流程来简化 Web 开发,将想法直接转化为代码,并利用 AI 代理处理技术实现。此次发布是朝着更直接的“想法到代码”应用构建未来迈出的重要一步。

黑客新闻 新的 | 过去的 | 评论 | 提问 | 展示 | 工作 | 提交 登录 Cursor浏览器(cursor.com)的可视化编辑器 5 分,由 evo_9 1小时前发布 | 隐藏 | 过去的 | 收藏 | 1 条评论 evrenesat 23分钟前 [–] 所见即所得-如果你幸运的话 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系 搜索:
相关文章

原文

We're excited to release a visual editor for the Cursor Browser. It brings together your web app, codebase, and powerful visual editing tools, all in the same window. You can drag elements around, inspect components and props directly, and describe changes while pointing and clicking. Now, interfaces in your product are more immediate and intuitive, closing the gap between design and code.

Rearrange with drag-and-drop

The visual editor lets you manipulate a site's layout and structure directly by dragging and dropping rendered elements across the DOM tree.

This unifies visual design with coding. You can swap the order of buttons, rotate sections, and test different grid configurations without ever context-switching. Once the visual design matches what you had in mind, tell the agent to apply it. The agent will locate the relevant components and update the underlying code for you.

Test component states directly

Many modern apps are built in React, where components have properties to control different component states. The visual editor makes it easy to surface these props in the sidebar so you can make changes across different variants of a component.

Adjust properties with visual controls

The visual editor sidebar lets you fine-tune styles with sliders, palettes, and your own color tokens and design system. Every tweak is fully interactive: live color pickers that preview your choices, as well as controls to rearrange grids, flexbox layouts, and typography with precision.

Point and prompt

The visual editor also lets you click on anything in your interface and describe what you want to change. You could click on one element and say, "make this bigger," while on another you prompt, "turn this red," and on a third you type, "swap their order." The agents run in parallel, and within seconds your changes are live.

Up the abstraction hierarchy

Cursor's new visual editor unifies your work across design and code, helping you better articulate what you want so that execution isn't limited by mechanics.

We see a future where agents are even more deeply connected to building apps on the web, and humans express their ideas through interfaces that connect thought to code more directly. These features are a step in that direction.

Read the Browser docs. Learn about all the new features in Cursor 2.2.

联系我们 contact @ memedata.com