Intellisense “Toggle Completion Mode” doesn't work with C++ in Visual Studio 2010 Professional

我的未来我决定 提交于 2020-06-10 09:04:12

问题


I am having problems with my "Toggle Completion Mode" under the Edit->Intellisense tab in Visual Studio 2010 Professional. The picture describes it quite well.

The completion mode works fine in C#. Please help.

Thank you in advance!


回答1:


There is no possibility to turn on suggestion mode on C++ IntelliSense (both in VS 2010 and 2012).

MSDN Library (for VS 2010) says:

Suggestion mode is available in Visual Basic and C#.

It was reported (link) as a bug in VS 2012 RTM and the answer from Microsoft was:

C++ Intellisense only has one completion mode, while VB and C# Intellisense has two different completion modes. Therefore, this command to toggle between completion modes is not available for C++ Intellisense.

If you're annoyed by inserting unwanted code after pushing space when you forget to press ESC you can make the member's list show up only after pressing ctrl+space (or alt+right arrow). In order to do that go to Tools -> Options -> Text Editor -> C/C++ -> General and uncheck Auto list members.




回答2:


I know this was posted a long time ago but I figured I would offer my solution. I changed the shortcut to something that is not as annoying as ctrl + space. You can do this in Options -> Keyboard -> Edit.CompleteWord.

Hope this helps someone.



来源:https://stackoverflow.com/questions/13352466/intellisense-toggle-completion-mode-doesnt-work-with-c-in-visual-studio-201

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!