Visual Studio 2013 C++ IntelliSense shows suggesti

2019-02-02 23:55发布

问题:

When I type in a C++ project , I get suggestion. I can commit the selected suggestion by hitting Tab key; But if I press enter or space or any of the member list commit characters :

{}[]().,:;+-*/%&|^!=<>?@#\

, Intellisense doesn't commit the selected option. I want this suggestion to be committed with any of these characters, exactly as the default settings in C#.

回答1:

  • Open Options from menus: Tools -> Options
  • Navigate to page: Text Editor -> C++ -> Advanced
  • Scroll down to Intellisense section
  • Change the option: Member List Commit Aggressive from False to True


回答2:

I had the same problem. I am using C++ together with Boost. There is a famous linker problem with Boost in debug mode.

I fixed this problem by the preprocessor macro _HAS_ITERATOR_DEBUGGING 0

But intellisense stopped working. I looked in the Error List tab of Visual Studio and found an entry which says intellisense has a problem wwith this macro.

After I changed this macro to _HAS_ITERATOR_DEBUGGING=0

intellisense works perfectly.

Hopefully this will help you Walter