> For the complete documentation index, see [llms.txt](https://dataflint.gitbook.io/dataflint-for-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dataflint.gitbook.io/dataflint-for-spark/dataflint-copilot/copilot-usage.md).

# Copilot Usage

## Copilot Usage

Now, when you are using the Cursor chat window and add a spark job as context, press "/" and you will get 2 *dataflint-copilot* prompts "spark expert", "highlight" and "optimize":

<figure><img src="/files/ZDEYGAA28XXhXONf2Zmu" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
You might want to approve all MCP tool calls without approval in Cursor/VScode setting, or add the DataFlint MCP requests to the allowlist of MCP tools that does not require approval.
{% endhint %}

**Highlight** will **add code highlight to your current job** based on the last run. You can also trigger it by asking Cursor "add highlight for this job"

<figure><img src="/files/Ss2otyIYNTmxmVtoVgFX" alt=""><figcaption></figcaption></figure>

**Optimize** also **optimize the code based on DataFlint alerts.** you can also trigger it by asking Cursor "optimize this job".

<figure><img src="/files/pXuIoGaFAYaw5rEc4FRb" alt=""><figcaption></figcaption></figure>
