For the complete documentation index, see llms.txt. This page is also available as Markdown.

📋Copy-Paste Limit in Editor

When students write code in CodeGrade's in-browser editor, you can now set an upper limit on how much text they can paste at once. This discourages students from pasting in code they didn't write, for example from AI tools or from other students.

The "Allow copy-pasting" slider in the Submission settings
The "Allow copy-pasting" slider in the Submission settings

How the paste limit works

  • By default, copy-pasting is Unlimited and students can paste freely.

  • Moving the slider towards Strictest lowers the maximum number of characters students can paste at once in the editor.

  • At the strictest setting, pasting is blocked completely.

  • The limit only applies to students. Staff can always copy and paste in the editor and preview the restriction in Student View.

Setting a paste limit

  1. Go to the Assignment Settings page of your assignment.

  2. Under the General tab, locate the Submission settings section.

  3. Make sure the Editor submit method is enabled. The paste limit only applies to the in-browser editor, not to the File uploader or Git submissions.

  4. Drag the Allow copy-pasting slider to the limit you want, from Unlimited to Strictest. The selected limit (e.g. "Up to 30 characters") is shown above the slider.

  5. Click Save to apply your changes.

Use Student View to preview what your students will see when they try to paste more than the limit.

What students see

When a student tries to paste text that exceeds the limit, the paste is blocked and a message explains what they can do instead:

Pasting more than the character limit
Pasting more than the character limit
Pasting turned off entirely

If pasting is blocked completely, students are asked to type their code in instead.

Last updated