Weird Behaviour in Visual Studio 2017

Hello, I was making a script in Visual Studio when all of a sudden it began to do this thing:
alt text

Instead of the usual:
alt text

This is also annoying because it just deletes the ) when i make a ()

Click Insert, you’ve pressed it before accidentally.