Using VS2017 in C++ app. I found the intellisense only outline the word and I have to press on tab
key for autocomplete while pressing on Enter
does not autocomplete the word and start a new line so is there an option to use Enter
instead of Tab
?
Asked
Active
Viewed 6,276 times
12

zac
- 4,495
- 15
- 62
- 127
-
I am not sure this counts as an answer but I believe it is a quirk of VS that `Tab` is the most aggressive autocomplete input. Enter, I believe, does work once intellisense figures out what you are typing but I think it struggles since there are many more valid uses for `Enter` than `Tab`. But the C++ intellisense can be slow so it may never figure it out especially as the volume of potential matches increases and the macros really mess with how easily intellisense can deal with `Enter` or anything not `Tab` since it needs to figure out a lot more context than say C#. – Gamenotcore May 26 '18 at 07:55
-
https://stackoverflow.com/questions/4883898/visual-studio-2010-intellisense-enter-will-not-autocomplete-any-more Bogdan's answer works for me – Yancey Aug 15 '19 at 22:11
3 Answers
19
- Goto => Tools >> Options >> Text Editor >> C/C++ >> Advanced >> IntelliSense
- Change => Member List Commit Aggressive to True

ved prakash
- 226
- 3
- 4
-
2Unfortunately it still does not work for me.. Using VS 2019 Community, on a C++ project; there is also no option to toggle "Completion mode" :( – Samleo Aug 05 '20 at 03:47
-
1
-
1
If you can use VSC, it autocompletes on Enter
in addition to Tab
by default. If you'd like to change that so Enter
starts a new line, go to (File > Preferences >) Settings > Text Editor > Suggestions > Accept Suggestions On Enter > Select on, off or smart.
("Controls whether suggestions should be accepted on Enter, in addition to Tab [...]").

Valy
- 406
- 3
- 13