Breaking Code
Breaking Code

Reputation: 11

Visual Studio keeps auto filling even with intellisense turned off

Visual Studio 2017 keeps filling out code sometimes even with intellisense turned off. I'm trying to learn C# and I'm copying examples from the book, Visual C# How To Program sixth edition, and just going through them and reading the book.

Sometimes auto complete really screws things up and I don't know what I need to turn off. Here is an example with a line of code.

   public override decimal Earnings() => WeeklySalary;

But when I try to put this in Visual Studio I get to the () and it does this.

    public override decimal Earnings()
    {
        throw new NotImplementedException();)
    }

This really messes things up when I am looking at the code I'm trying to copy and not the screen. How do I stop this?

Upvotes: 1

Views: 398

Answers (1)

Adam Hoffman
Adam Hoffman

Reputation: 793

I believe what you're describing is called "statement completion" in Visual Studio. It's different than Intellisense. Try changing things in the "statement completion" section of the C# properties for the Text Editor:

enter image description here

My guess is that "automatic brace completion" is the box you'll want to uncheck.

Upvotes: 1

Related Questions