> ## Documentation Index
> Fetch the complete documentation index at: https://docs.double.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Inline Edit (preview)

<Tip>This feature is currently in *preview*, meaning you may encounter rough edges as we continue to develop it. [Send us your feedback!](mailto:help@double.bot)</Tip>

Inline Edit allows you to instruct the AI on what changes to make to your code, and then review its proposed changes in differential style, all within your editor. To get started:

<Steps>
  <Step title="Highlight your code">
    Begin by highlighting the code you want to edit. You can highlight every line in a file, or even just a single character.

    After you've made your selection, press `Option+O` (Mac) or `Alt+O` (Windows) to trigger an Inline Edit.
  </Step>

  <Step title="Give your instructions to Double">
    A new text bar will appear at the top of your editor. This is where you can give instructions to Double.

    When you are done typing, press `Enter` to submit your instructions.

    <img className="block h-48 ml-0 dark:hidden" height="140" src="https://mintcdn.com/double/-SaQhWM0WaCkpz-i/images/inline_1_light.png?fit=max&auto=format&n=-SaQhWM0WaCkpz-i&q=85&s=8b3f1623282ac6c722c670a1fb514023" data-path="images/inline_1_light.png" />

    <img className="hidden h-48 ml-0 dark:block" height="140" src="https://mintcdn.com/double/-SaQhWM0WaCkpz-i/images/inline_1_dark.png?fit=max&auto=format&n=-SaQhWM0WaCkpz-i&q=85&s=8af6c5db73b09bed11477594d36589f4" data-path="images/inline_1_dark.png" />
  </Step>

  <Step title="Review the changes">
    The changes to your code will be presented in differential style. Lines of code added will be highlighted in green, and lines of code removed will be highlighted in red.

    You can accept all or reject all of the changes by clicking on `Accept All` or `Reject All` buttons at the top of the editor, or with the `Cmd+Shift+Y` and `Cmd+Shift+N` keyboard shortcuts.

    Alternatively, you can accept or reject individual changes by clicking individually on the `Accept` or `Reject` buttons next to each change, or with the `Cmd+Y` and `Cmd+N` keyboard shortcut from top to bottom.

    <img className="block h-48 ml-0 dark:hidden" height="140" src="https://mintcdn.com/double/-SaQhWM0WaCkpz-i/images/inline_2_light.png?fit=max&auto=format&n=-SaQhWM0WaCkpz-i&q=85&s=9874abd9945c8889eb4d094e57f5a55d" data-path="images/inline_2_light.png" />

    <img className="hidden h-48 ml-0 dark:block" height="140" src="https://mintcdn.com/double/-SaQhWM0WaCkpz-i/images/inline_2_dark.png?fit=max&auto=format&n=-SaQhWM0WaCkpz-i&q=85&s=339f79d7c12462efd73b56bee4e718ee" data-path="images/inline_2_dark.png" />
  </Step>
</Steps>
