Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: automatically open Intellisense

Is there a way to make Intellisense(CTRL+Space) automatically open after I type a letter? Its really annoying me to have to press CTRL+Space every line of code

like image 344
zacaj Avatar asked Jan 19 '23 22:01

zacaj


2 Answers

What you describe is the default behavior. To restore it, use:

  • Tools -> Options -> Text Editor -> C# (e.g.)
  • Statement Completion -> Auto list members: Checked

Edit:

In C++ "Auto list members" does not apply to the first identifier in an expression, that is, when the identifier could be almost anything: a global variable, a keyword, a class member, etc. It does however apply (and does work) after the ".", "->", and "::" operators.

A workaround for a very common case of desiring auto listing for class members is to use the "this->" convention in your code, which some coding standards recommend anyway. The completion list will pop up immediately upon typing "->".

like image 74
Rick Sladkey Avatar answered Jan 22 '23 13:01

Rick Sladkey


Default C++ IntelliSense does not open automatically when you are typing except for after ., -> and ::. The third party commercial extension Visual Assist X does provide that behavior though.

like image 38
sean e Avatar answered Jan 22 '23 12:01

sean e