I can't use the ' & " symbol in C#

Is there someone that can help me with the following issue?

I can’t use the ’ & " symbols in C#

For example, if I want a rigidbody to move and I want to type:

float moveHorizontal = Input.GetAxis(“Horizontal”);

I get:

float moveHorizontal = Input.GetAxis(Horizontal);

I tried to type into Microsoft Word and copy paste it to C#.

However, C# doesn’t recognize the copied " symbols.

I probably have some settings wrong on my laptop or in C#.
Can anybody help?

Regards Mark

what kind of tool do you use ? MonoDev, VS ?

MonoDevelopment

… Why are you writing code in Word of all things?

Don’t do that. Word is a program for writing prose that looks good as prose, not programs. This means that it will auto-format a bunch of symbols. " and ’ are often turned into different things that looks slightly similar, the same goes for - , which becomes the slightly longer dash symbol.

Just write directly in MonoDevelop. To fix the pasting, use find and replace to replace all the instances of the broken symbols with the correcy symbol.

EDIT: if you can’t write the " symbol at all, you’ve probably got a broken keyboard setup. On a Windows computer, WIN+Space switches between keyboard setups, check if you’ve got a different one than the one you think you have. For example, Windows before 10 would automatically change to the US keyboard if you had a different keyboard set up but used US english as the OS language.

I think I didn’t explain myself clearly…
I cannot use the '& " symbols in MonoDevelop. Somehow
my laptop doesn’t respond to these two symbols (or the key) in MonoDevelop,
whereas it does respond to it in Word. So that’s why I used Word
to write for example “Horizontal”.
Yes, you are right that if I copy for example “Horizontal” from Word into
MonoDevelop, it turns into a slightly different symbol.

My question therefore was, if anybody knew what was wrong with my laptop, or maybe something
is wrong in my MonoDevelop settings?

@ Baste, do you understand my problem now?

Do you have any form of other antivirus than MS Defender? Try turning it off. I’ve seen Norton break keyboard input before.

I’ve Norman on my laptop and tried to run MonoDevelop with Norman switched off.
Switched my laptop on and off, but it didn’t help either, thanks anyways!

I’ve found the solution. I switched the keyboard settings from US international to US.
It works fine now.
Thanks everybody for the time and help:)