AI Assistant Help

In-editor code generation

You can generate code and use inline AI prompts right in the editor.

  1. To generate code in the editor, do one of the following:

    • Place the caret anywhere in the editor and press Ctrl+\. Write your prompt in the input field and press Enter.

      Invoke an input field and type your prompt
    • Right-click anywhere in the editor to open the context menu, select AI Actions, and then Generate Code. Write your prompt in the input field and press Enter.

      Open the AI Actions menu and select the Generate Code option
    • Type your prompt right in the editor where you want to make adjustments and press Tab.

      Type your prompt directly in the editor
  2. Wait for the generation to complete. The generated code will be shown in the same editor tab where you have written your prompt.

    Generated code in the editor tab
  3. If you want to improve the generated code, write a follow-up message with the new requirements in the input field on top of the editor and press Enter.

    AI Assistant will regenerate the code while taking into account the new specifications.

    If you want to regenerate the answer, click Regenerate or press Ctrl+F5.

  4. Click Accept All to insert the generated fragment.

    If you want to revert some of the suggested changes, in the gutter, click Revert.

    To discard all the suggested changes, click Discard All.

23 October 2025