Visual Studio-自动完成不起作用 [英] Visual Studio- autocomplete not working

查看:45
本文介绍了Visual Studio-自动完成不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 C++ 在 Microsoft Visual Studio 中编写程序.最近,我注意到它提供的自动完成功能已经停止工作(我认为它被称为智能感知或其他什么?)所以现在,当我输入代码时,如果我编写类似:className.以前,一旦我输入 . 会出现一个小对话框,列出该类中可用的函数和变量,但现在这种情况不再发生,并且 Visual Studio 不再自动完成我正在输入的变量...

I am writing a program in Microsoft Visual Studio using C++. Recently, I noticed that the auto complete functionality that it provides has stopped working (I think it's called intellisense or something?) So now, when I'm typing code, if I write something like: className. previously, once I had typed the . a little dialogue box would appear listing the functions and variables that were available in that class, but now this no longer happens, and Visual Studio no longer automcompletes the names of the variables that I'm typing...

有人知道这是为什么吗?我怎样才能让这个自动竞争功能再次工作?我试过工具 --> 选项 --> 文本编辑器 --> C/C++ 并在语句完成"部分中,自动列表成员"和参数信息"复选框都被选中...

Anyone know why this is? How can I get this automcompete feature working again? I've tried going to Tools --> Options --> Text Editor --> C/C++ and in the 'Statement Completion' section, the 'Auto list members' and 'Parameter information' checkboxes are both checked...

推荐答案

为了解决这个问题,我需要在 Visual Studio 关闭时从项目文件夹中删除 .ncb 文件.

To fix this, I needed to delete the .ncb file from the project folder when Visual Studio was closed.

这篇关于Visual Studio-自动完成不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆