So you know, this is not a post regarding the Editor, it’s a typo (just look at the code again you’re copying from) and as such, should be posted on the Getting Started or Scripting forum.
I’ll move your post to the Scripting forum.
It would be much more useful to tell other devs what the error is and which line/column, both of which are provided to you in the compiler error. A compiler error is you typing incorrect code; it’s not good saying VS thinks everything is okay, it’s not.
NOTE: Please edit your post to use code-tags when posting code. Please don’t use plain text.