Visually editing web apps with Gemini Canvas 'Select and Ask' | Alpha | PandaiTech

Visually editing web apps with Gemini Canvas 'Select and Ask'

A guide to using the 'Select and Ask' feature in Gemini Canvas to visually modify web app elements like buttons or text without writing manual code.

Learning Timeline
Key Insights

Benefits of 'Select and Ask'

Similar to how the Nano Banana model handles image editing, this feature allows you to maintain consistency within your existing code without drastically altering the overall application structure.

Selection Accuracy Tips

For best results, make sure to highlight the entire code block of the element (from the start tag to the end tag) so Gemini understands the full scope of the changes required.
Prompts

Visual Element Edit Prompt

Target: Gemini Canvas
Add a logo to this header and ensure it is centered on mobile view.

Add New Element Prompt

Target: Gemini Canvas
Add a 'cat with a hat' icon next to the search bar using a standard SVG placeholder.
Step by Step

How to Use 'Select and Ask' in Gemini Canvas

  1. Open Gemini Canvas containing your web application code.
  2. Use your cursor to highlight or select the specific code snippet you want to modify, such as a <button>, <div>, or text element.
  3. Click on the 'Select and Ask' icon (usually a floating icon next to the selected text).
  4. Enter your visual instruction prompt in the input box that appears (e.g., 'Change this button to a blue gradient and give it rounded corners').
  5. Press Enter and wait for Gemini to generate the updated code based on your instructions.
  6. Click the 'Apply' button to automatically replace the old code with the new version without needing to copy and paste manually.

More from AI-Powered Coding & App Development

View All