CodeHS Pro allows teachers to prevent students from copying and pasting in the Code Editor.  When Copy/Paste Prevention is enabled, students enrolled in that section can no longer Copy, Paste, or Cut to and from the Editor. 

Copy/Paste Prevention can be enabled for an entire section, configured per student, configured for a specific assignment, and configured for the Sandbox.

Jump to a section:

Configure Per Section

  1. Navigate to your section

  2. Hover over Course Settings and choose Copy/Paste Prevention

  3. Use the left column to configure settings for individual modules

  4. Use the right column to configure settings at the section level (this will also configure settings for the Sandbox)

gif shows accessing copy/paste settings page from drop down nav bar

Configure Per Individual Student

From Student Settings page:

  1. From your roster page, click on the gear icon next to the student's name

  2. Configure the setting for entire modules, or expand to configure the setting for specific lessons or assignments

gif shows clicking gear icon on roster page to bring up student settings page

Configure Per Assignment

  1. Navigate to your section 

  2. Click on Assignments

  3. Click the Configure (gear) icon next to the assignment you want to configure

  4. Scroll down to enable Copy/Paste Prevention

arrow points to configure gear icon to right of assignment name
arrow points to copy/paste prevention setting on configure menu

Configure Sandbox

To configure your Sandbox settings:

  1. Select the Section you would like to make changes to

  2. Hover over ‘Course Settings’ from the top menu bar

  3. Select ‘Copy/Paste Prevention’ from the drop-down menu

  4. Toggle the button that is at the top of each Section column

You can control Copy/Paste Settings for student Sandboxes separately from the settings in your course.

In this example, Copy/Paste Prevention is turned on for the assignments in each Module.

In this example, Copy/Paste is allowed in the Sandbox and the course for the Section A. For the CodeHS Demo section, Copy/Paste is disabled for all modules in the course, but students are able to Copy/Paste in the Sandbox.

Here, Copy/Paste Prevention is only on for the selected Modules. Students will be able to copy and paste in their Sandboxes and in all but 3 (Karel Challenges, JavaScript Control Structures, Functions and Parameters) Units.

Copy/Paste Prevention is available as part of CodeHS Pro. To get CodeHS Pro for your school, contact our team at

Did this answer your question?