Automatically insert parenthesis for method calls in C++

If I want to call a function/method in C++ my normal way is to type the first letters of the name and investigate the IntelliSense suggestions. If I choose one, the name will be inserted, but it would be great if also the parenthesis could be inserted. Of course the caret should be placed in the middle of the new parenthesis. I am using Visual Studio 2015 and R#. Is there a setting in VS or R# about this?

eg

std::string s; 
s.em 

the result after the use of IntelliSense should be

std::string s; 
s.empty(_CARET_);
3 comments

Hello,

This is what ReSharper does by default. The setting which controls this behavior is "ReSharper | Options | Environment | IntelliSense | Completion Behavior | Automatically insert parentheses after completion".

0

I'm curious what the issue was, did something work in a non-expected way?

0

Please sign in to leave a comment.