简体   繁体   中英

How to change key to 'accept' intellisense 'offer' for VB.Net in Visual Studio 2015 (update 3)

When I'm coding in VB.Net in VS2015 I would like to use CTRL+SPACE to select Intellisense proposal when coding. Currently I have to use SHIFT+SPACE and I see no way to change it.

VB.Net代码编辑

In the preceeding example screenshot it is visible that I have 3 potential options to autocomplete. I can select any of them with key up/down but in order to select the proposal I have following options:

  • Press 'SHIFT+SPACE' - this will accept the proposal and position the carret right after the word enabling me to press '(' or whatever else I want
  • Press 'SPACE' - this will accept the proposal but it will also add a white space at the end which is ok for properties/fields but not good for methods
  • Press '(' - this will accept the proposal but it will also add a '(' character at thend which is ok for functions/sub but not good for properies/fields
  • Press 'CTRL+SPACE' - this actually does not do anything :(, CTRL on its own makes the Intellisense menu gray-out

In the key configuration window I found the Edit.CompleteWord command:

键盘绑定对话框

However this command already has CTRL+SPACE assigned it but it simply does not work. In addition SHIFT+SPACE is not mentioned as one of the keybindings.

Note: VS2015 does have a flag 'Toggle Completion Mode' but I actually see no difference if this option is checked or not.

你可以使用Tab,这将接受提议,并在Tab使用空间后立即显示当前它显示你下一个完整的Word。

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