---
title: Inline Edit
description: Modify code directly within the editor using natural language instructions.
---

# Inline Edit

Modify code segments directly in the editor using natural language instructions. ProxyAI applies your requested changes live without leaving your coding environment.

<video
    src="https://proxyai-assets.s3.eu-central-1.amazonaws.com/videos/inline-edit.mp4"
    alt="Inline Edit process: Highlighting code, clicking the Edit Code icon, entering 'improve logging', submitting, and observing live code modification in the editor."
    width="1200"
    height="800"
    className="nx-rounded-lg nx-my-4"
    autoPlay
    muted
    loop
/>

To use Inline Edit:

* Select the code block you want to modify
* Click the **Edit Code** icon in the hover panel that appears
* Enter your instruction (e.g., "refactor to use async/await" or "add error handling")
* Press Enter to apply the changes directly to your code

### Keyboard Shortcuts

* **Initiate Inline Edit**: `Cmd+Shift+K` (macOS) or `Ctrl+Shift+K` (Windows/Linux)
* **Submit Instruction**: `Enter`
* **Cancel Edit**: `Esc`