简体   繁体   English

Visual Studio Community 2015自动完成选项

[英]Visual Studio Community 2015 Auto Complete Options

So, in visual studio 2015 when I am typing, options come up for auto complete. 因此,在Visual Studio 2015中,当我键入内容时,会出现自动完成的选项。 Problem is, when none of those options match, and I type dot ('.'), it auto completes to the first option. 问题是,当所有这些选项都不匹配并且我键入点('。')时,它将自动完成到第一个选项。 I end up having to press ESC to go back which is actually annoying. 我最终不得不按ESC返回,这实际上很烦人。

For instance, If I type: 例如,如果我键入:

Sys 系统

Options come up that include: 出现的选项包括:

  • System 系统
  • SystemException SystemException
  • OperatingSystem 操作系统

If I actually have my own class called Sys, and I want to reference its members such as Sys.getId() or so, when I type: 如果我实际上有自己的名为Sys的类,并且想在键入时引用其成员,例如Sys.getId()左右,则:

Sys. Sys。

Visual studio actually inserts, Visual Studio实际上会插入

System. 系统。

I'd like to change it so it doesn't complete on the dot (.), but only autocompletes on space or tab key. 我想更改它,以便它不能在点(。)上完成,而只能在空格或Tab键上自动完成。 Is that possible? 那可能吗? because this is annoying as hell. 因为这很烦人。

Try this: 尝试这个:

Edit -> Intellisense -> Toggle Completion Mode 

or 要么

Ctrl + Alt + Space Ctrl + Alt + 空格

Now I can press tab to select the recommended member ( System ), but if I need Sys.Test I can just do Sys and then . 现在,我可以按Tab键选择推荐的成员( System ),但是如果我需要Sys.Test ,则可以先执行Sys然后再执行.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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