Visual studio 2008 智能感知没有显示我写的任何东西
我正在使用Visual C#2008 express。我也在运行Windows7。我创建了一个简单的表单,但是Intellisense没有显示我写的任何东西。 我写道: 然后当我写Visual studio 2008 智能感知没有显示我写的任何东西,visual-studio-2008,intellisense,Visual Studio 2008,Intellisense,我正在使用Visual C#2008 express。我也在运行Windows7。我创建了一个简单的表单,但是Intellisense没有显示我写的任何东西。 我写道: 然后当我写rbtn时,Intellisense会弹出,但它不会显示rbtn\u sortLocation。但在写出一整行之后,它并没有抱怨错误。如何让Intellisense显示我的方法等 另外:这只发生在我在这台计算机上创建的解决方案上。我在旧XP机器上创建的所有解决方案都运行良好。您可以尝试一下Ctrl+Space。这是一种
rbtn
时,Intellisense会弹出,但它不会显示rbtn\u sortLocation
。但在写出一整行之后,它并没有抱怨错误。如何让Intellisense显示我的方法等
另外:这只发生在我在这台计算机上创建的解决方案上。我在旧XP机器上创建的所有解决方案都运行良好。您可以尝试一下
Ctrl+Space
。这是一种手动打开Intellisense菜单的方法
您还可以检查选项以确保其已打开。我相信intellisense选项位于
工具->选项->文本编辑器->(所有语言或您使用的语言)->语句完成部分->自动列表成员-/code>您在哪里编写“rbtn”并试图打开intellisense?还有,这个单选按钮在哪里申报
Intellisense使用基于范围的选项填充菜单。例如:(假设RadioButton是在类级别声明的)
对不起,我把问题写错了。菜单确实出现了,但它不包括我的方法或我写的任何东西。
private RadioButton rbtn_sortLocation;
class MyClass
{
private RadioButton rbtn_sortLocation;
// Intellisense will not show the RadioButton in this scope.
// This is the class scope, not in a method.
static void StaticMethod()
{
// Intellisense will not show the RadioButton in this scope.
// The RadioButton is not static, so it requires an instance.
}
class InnerClass
{
// Intellisense will not show the RadioButton in this scope.
// This is the class scope, not in a method.
void InnerClassMethod()
{
// Intellisense will not show the RadioButton in this scope.
// Members of the outer class are not accessible to an inner class.
}
}
public MyClass()
{
// Intellisense WILL show the radio Button in this scope.
// class members are accessible to the constructor.
}
void Method()
{
// Intellisense WILL show the radio Button in this scope.
// class members are accessible to instance methods.
}
}