# Creating course-wide snippets

Course-wide snippets are available for a specific course and are automatically available to all graders in all assignments of that course.

{% hint style="success" %}
Next to making grading more efficient for you and your graders, creating course-wide snippets forces you to think about common and expected errors and mistakes during your assignments, which is always a good practice.
{% endhint %}

Create new snippets in your course by following these steps:

![Creating new course-wide snippets](/files/QQDdf0twoawfVstt7k0M)

1. Choose any course and click on the **Course Settings** button present on the right of the screen.&#x20;
2. Go to the **Snippets** tab and click on the **New snippet** button (+ symbol).
3. Enter a *name* and the *replacement text* for the snippet in the respective input fields, and press **Save**. This snippet can now be used anywhere throughout this particular course.

{% hint style="success" %}
Personal snippets and course-wide snippets can have the same keywords, these can then be used and selected next to each other.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.codegrade.com/faq/creating-course-wide-snippets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
