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

# Editor integration

> Send selections, file paths, console output, and diagnostics to CC GUI.

The JetBrains editor, project tree, and console can drop current context into the input box so you do not copy paths and line numbers by hand.

<img src="https://mintcdn.com/mossx-docs/kz4nt5KFSKzkAZwe/images/jetbrains/editor-context-menu.png?fit=max&auto=format&n=kz4nt5KFSKzkAZwe&q=85&s=e9186288c9e3cfbc5779d6ec2e3bfee6" alt="Editor context menu" width="100%" data-path="images/jetbrains/editor-context-menu.png" />

## Send a selection

1. Select code in the editor
2. Right-click and send the selection to CC GUI
3. Or press `Cmd+Alt+K` (Windows / Linux: `Ctrl+Alt+K`)

The input box inserts:

```text theme={null}
@/absolute/path/File.kt#L12-L40
```

With no selection, this action usually just opens the CC GUI panel.

## Copy an AI citation

Right-click and copy the AI citation to put the same `@path#Llines` on the clipboard, then paste it into another session or tab.

## Send a file path

These places can send a file path into the input box:

* Right-click an editor tab
* Right-click in the project tree (multi-select is supported)

The action is send file path to the input box. Multiple files become multiple `@path` items.

## Quick Fix

When a file has diagnostics (red or yellow underlines):

1. Right-click or use an intention action and choose **Fix with Claude**
2. Or press `Cmd+Shift+Q` (Windows / Linux: `Ctrl+Shift+Q`)

CC GUI opens the panel and inserts a prompt that includes the diagnostic text, file, and range, then the model proposes a fix.

<img src="https://mintcdn.com/mossx-docs/kz4nt5KFSKzkAZwe/images/jetbrains/quick-fix.png?fit=max&auto=format&n=kz4nt5KFSKzkAZwe&q=85&s=01bb6de01283ea3be8fc9e559b0e0439" alt="Quick Fix" width="100%" data-path="images/jetbrains/quick-fix.png" />

## Send console output

Select text in the Run / Debug console, then right-click to send it to the CC GUI input box. This is useful for handing a stack trace to the model.

## Related actions

The full action and shortcut list is in [Actions and shortcuts](/en/jetbrains/ide/commands).
