简体   繁体   中英

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?

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:

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM