Visual Studio 2015 Intellisense Keyboard Options

2019-02-26 08:45发布

问题:

First, I'm asking this here, rather than on the Microsoft forums, because they're, well, you know what they are.

I like the VS2015 Intellisense autocomplete features -- when I want them. But they've stupidly added the spacebar as a selection key. Even more stupidly, they've added the '.' the ':' and probably other boundary characters as selection keys, too.

What this means, is I'm often typing happily along (and rather quickly), and whenever one of the "stupid" selection keys is pressed, I'm making intellisense selections I don't want. I just want to type, dang it! So I wind up having to go back and correct all the unintended autocomplete errors.

Microsoft "solves" this problem by allowing me to turn the whole thing off and bring it up with CTRL+J. They won't let me change the settings to specify, say, only accepting intellisense options with the TAB key and nothing else. Earlier versions permitted this.

My question is, is anyone aware of a plug-in or some other procedure that will allow me to modify the default behaviour?

回答1:

You can toggle between "suggestion" and "completion" mode with Edit > Intellisense > Toggle Completion Mode or pressing [Ctrl]+[Alt]+[Space] (Keyboard shortcut can differ).

There is also a toolbar shortcut:

This will still pop up the completion list, but not automatically insert the highlighted entry when you press Return or Space. If you want to select an entry, use the arrow keys, the entry will then be selected (solid color highlight instead of outline) and work as before.



回答2:

Lets say you want to type the following:

IceIceBaby

You type

Ice

VS2015 pops up with a box that says

IceCream

Just press the escape key and it will cancel and let you keep typing.