Skip to main content

Inline Edit

Edit SQL using natural language — see a diff of proposed changes before accepting.

Inline Edit


How It Works

  1. Select the SQL you want to change (or place your cursor in a statement)
  2. Press Ctrl+Win+I (Windows) / Ctrl+Cmd+I (Mac), or right-click and select "Edit with AI"
  3. Describe what you want to change in the input field
  4. Review the diff overlay showing additions and deletions
  5. Accept or reject the changes

Examples

You typeWhat happens
"add a WHERE clause for active users"Inserts WHERE status = 'active'
"convert to use a CTE"Restructures query with WITH clause
"add column aliases"Adds AS clauses to SELECT columns
"optimize for cost"Rewrites to reduce scanned data

In Notebooks

Inline edit works in notebook cells too. Select SQL in any cell and use the same shortcut.


Notes

  • The AI validates its proposed changes against BigQuery SQL syntax before showing the diff
  • You always see the exact changes before they're applied
  • Press Escape to dismiss without applying