Mixed tabs and spaces in indentation error

I get this error whenever I copy and paste the code from the lesson (occasionally I copy it rather than type it out). How can I fix this so this does not occur? Currently I am backspacing the spaces and re-tabbing them for proper formatting and its a real pain. 

  • Nathan Lovato replied
    In those cases, in the script editor, you can press Ctrl Shift I: this is the shortcut for Edit -> Convert Indents to Tabs. It will convert the spaces to tab characters for you.
    1 love
  • w
    warrioricon replied

    Thank you Nathan, that's exactly what I needed