How to turn off brackets/quotes auto-completion in Visual Studio

后端 未结 7 1516
误落风尘
误落风尘 2020-11-30 07:18

As it states in the title: how to I turn off brackets/quotes/curly braces autocompletion in MSVS? I\'m interested in C# and XAML mostly but other text editors would be nice

相关标签:
7条回答
  • 2020-11-30 07:34

    To turn off the double-quote auto complete for XAML in Visual Studio 2015, it is:

    Tools -> Options -> Text Editor -> XAML -> Miscellaneous -> Attribute quotes
    
    0 讨论(0)
  • 2020-11-30 07:40

    For Visual Studio 2017:

    C# only:

    Tools > Options > Text Editor > C# > General > Automatic brace completion

    All languages:

    Tools > Options > Text Editor > All Languages > General > Automatic brace completion

    0 讨论(0)
  • 2020-11-30 07:42

    If anyone is by chance using Resharper you may also want to adjust the settings in

    (Resharper Menu, Options) - Environment -> Editor -> Editor Behavior 
    

    and

    (Resharper Menu, Options) - Environment -> Intellisense -> Completion Behavior
    

    according to your personal preferences, in addition to the built-in Visual Studio settings mentioned by others.

    0 讨论(0)
  • 2020-11-30 07:46

    I realize you did not mention the Productivity Power Tools, however it is very easy to turn off with this. This package can be downloaded via nuget I believe.

    Once downloaded go to Tools - Options - Productivity Power Tools - then on the right you will see auto Brace Completion. Turn off!

    0 讨论(0)
  • 2020-11-30 07:46

    For those using the 2017 mac version of visual studio: Preferences > Text Editor > Behavior > Automatic Behaviors > "Insert matching brace"

    0 讨论(0)
  • 2020-11-30 07:49

    Regarding ReSharper, you might also need to Clear chaches after adjusting settings as Nate Cook described.

    0 讨论(0)
提交回复
热议问题