Stop default Autocomplete behavior when hitting spacebar in Visual Studio 2015

前端 未结 8 2113
臣服心动
臣服心动 2020-12-29 19:49

NOTE The keyword here is \"default\". I know I can hit escape and the default behavior gets aborted. I don\'t want to hit the escape key every time the ID

8条回答
  •  [愿得一人]
    2020-12-29 20:04

    If you're using Resharper and Visual studio 2017, you may need to use a combination of the existing answers to stop getting the autocomplete behaviour when pressing space. This is too long for a comment so added an answer.

    1. Make sure in Visual studio that intellisense Toggle Complete Mode is off/unselected (as noted in other answers). Note: If you turn on the "Text editor" icons in the VS toolbar at the top, you'll see an extra icon that gets highlighted on and off showing you whether intellisense is toggled on or off. AND

    2. In the resharper dropdown on the toolbar (Resharper > Options...), Go to IntelliSense > Completing Charactes > and then uncheck the "Complete on space" box for C#.

    Now autocomplete doesn't occur when pressing space (can still use tab, etc to autocomplete).

    (Related aside: This autocomplete on space is really bad if you use VSVim, because you can't by default use the typically vim ESC key to 'get out' of the autocomplete mode. e.g. it's very difficult to even type in the static modifier for a variable/function without it changing to some other autocomplete choice.)

提交回复
热议问题