Web-based Preview
CodeArts Agent IDE includes a built-in browser feature that lets you preview your web application's performance directly and carry out necessary actions. Specifically, you can:
- Instant external URL preview: Enter an external URL in the browser address bar to instantly preview the website.
- One-click selection import to chat: Select one or multiple elements from the browser and add them to the chat box.
- Direct element-to-agent interaction: Select any element and send it to a chat with one click to interact directly with the agent.
- Real-time console log viewing and reuse: Open the console, check the browser's printed logs, then paste them into the chat box.
- Drag-and-drop element movement: Select an element and intuitively adjust its position using the mouse.
- Two-way editing: Modify element properties directly in either the design interface or the CSS code.
- Element-level commenting: Add comments to precisely bind style optimization requirements to specific elements.
Adjusting Page Elements in a Project
- Log in to CodeArts Agent IDE as instructed in Quick Start.
If the chat panel of CodeArts Agent is not displayed, click
(Expand AI Sidebar) in the upper right corner of the top menu bar to open it. - In the explorer, expand the folder, right-click the ***.html file, and choose Preview in Browser.
- Improve selected items on the project page by adjusting their size, placement, style, or layers according to the design needs. This ensures a clean layout, logical structure, and seamless user experience.
- Enhance the element's card design. Open your browser tab, select the element picker tool
, hover over the desired element, and choose Optimize. - Open your browser tab, click
, and select Improve Page to instantly enhance how the page looks. - Improve the design of every file in the project. Open your browser, click
, and choose Improve Project to quickly upgrade the appearance of all pages. - Use the CSS inspector to optimize the page. Open your browser, click the CSS inspector
, and select the target element. You can then modify the selected element in the component tree and design panel. In the component tree, right-click the target element to copy, cut, paste, or delete the element. You can also drag an element to another component tree node.
On the design panel, you can edit elements in a visualized manner, such as adjusting the position, layout, text, background, and border. You can also view or edit CSS style rules in the CSS.
When setting the font in Design > Text, manually enter the name of the font installed on your local computer.
- Optimize the page by adding comments. Add comments to precisely bind style optimization requirements to specific elements. The agent performs local optimization based on the comment instructions to achieve precise modifications, significantly reducing communication costs and rework rates.
- On the displayed page, click the comment icon
. - Select the content to which you want to add a comment, enter the optimization prompt, and click Add Comment.
The system temporarily stores your comments in a bubble. You can hover the mouse pointer over the bubble to view the comment target and content. You can also click Submit. The agent will optimize the page based on your comments.
- Select another content to which you want to add a comment, enter the optimization prompt, and click Add Comment.
- After adding a comment, click Submit. The agent will optimize the page based on your comments. To cancel saving your comments in a batch, click Cancel in the upper right corner. To undo the last operation, click
.
A maximum of five comments can be added.
- On the displayed page, click the comment icon
- Preview the page on multiple devices. After a page is developed, you can preview the page on multiple devices.
- On the displayed browser page, click
to open the device toolbar. - Select a device type and view the page effect.
- On the displayed browser page, click
Generating a New Page Based on an External Website
- Log in to CodeArts Agent IDE as instructed in Quick Start.
- Select Agent at the bottom of the input box on the chat panel. The selected model is displayed on the right. You can select a model as required from the drop-down list.
If the chat panel of CodeArts Agent is not displayed, click
(Expand AI Sidebar) in the upper right corner of the top menu bar to open it. - Open an external website.
In the chat box, enter a prompt and click
to open the target webpage.
To view another webpage, type its URL into the browser's address bar and click
to load it instantly. - Generate a new page using elements from the external webpage.
- In the input box, enter the following prompt and click
. In the TestDemo_01 folder of the current project, build a search page for the browser's content. Start the preview using node-server. Follow all prompts and execute the given instructions as directed.
- After the execution is complete, in the explorer, expand the demo folder, right-click the generated ***.html file, and choose Preview in Browser.
- Type the website's URL into the address bar, click the element selector tool
, and pick the needed element from the page. - In the input box, enter the following prompt and click
. Once done, check the results. Adjust the top-searched document details to fit this project's search page layout, and preview the generated webpage.
- In the input box, enter the following prompt and click
Related Operations
Click the developer tool icon
near the address bar in your browser. The tool shows live updates for info, warning, or error logs in your project. (You can click Custom Levels on the Console tab to view the log type.) Copy and paste these logs into CodeArts Agent to get quick analysis and solutions.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot








