📋Copy-Paste Limit in Editor
Last updated
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.

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.
This feature deters students from copying and pasting, but does not entirely prevent it. Students can still type code over from another screen. For high-stakes assessments, combine it with exam features covered in Running Secure Exams.
Go to the Assignment Settings page of your assignment.
Under the General tab, locate the Submission settings section.
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.
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.
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.
When a student tries to paste text that exceeds the limit, the paste is blocked and a message explains what they can do instead:


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