# 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="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2Fa2Rmk1qGc68xsJWjAGBP%2Fimage.png?alt=media&#x26;token=e35d6376-ccef-49ea-92a1-9d8941fa7e7b" 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="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2F9rlZ294DVfzv4gqds2wt%2Fimage.png?alt=media&#x26;token=37dc04b5-3426-489d-8db3-b7e242967707" 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="https://2982210886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcg8pTm3VgVaeMncRl8LP%2Fuploads%2F8qdxVY8SuZSQ1rCmjxmL%2Fimage.png?alt=media&#x26;token=bac7f7fe-4831-4bd3-80f2-8afd34012d8c" alt=""><figcaption></figcaption></figure>
