如何让Intellisense在VS2008中为F#工作?

时间:2022-02-08 12:56:41

I am using VS Team System 2008 version 9.0.21022.8 RTM, .NET Framework 3.5 SP1.

我正在使用VS Team System 2008版本9.0.21022.8 RTM,.NET Framework 3.5 SP1。

I get C# and VB.NET Intellisense, but not for F# May 2009 CTP.

我得到了C#和VB.NET Intellisense,但不是F#2009年5月的CTP。

UPDATE July 7th, 2009

更新于2009年7月7日

I am installing VS 2008 SP1, maybe it is better than reinstalling VS 2008 from scratch.

我正在安装VS 2008 SP1,也许它比从头重新安装VS 2008更好。

3 个解决方案

#1


Might you have run into this problem? (Note, though the title says XAML, the article also indicates that it breaks F# intellisense.)

你可能遇到这个问题吗? (注意,尽管标题是XAML,但文章也表明它打破了F#intellisense。)

I have also read that uninstalling and reinstalling F# fixed the problem.

我还读到卸载并重新安装F#修复了问题。

#2


If you installed F# via the MSI Installer file (vs. the .zip install), all that's required is that you have the correct extension on your file: .fs, .fsx, or .fsi.

如果您通过MSI安装程序文件(相对于.zip安装)安装了F#,则所需的只是您在文件上具有正确的扩展名:.fs,.fsx或.fsi。

You can tell if the F# Visual Studio components were installed correctly by going to the Help -> About Microsoft menu option. You should see Microsoft Visual F# in the list of installed products. If you don't see it there, it wasn't installed correctly and that's likely why you're not getting intellisense.

您可以通过转到“帮助” - >“关于Microsoft”菜单选项来判断F#Visual Studio组件是否已正确安装。您应该在已安装的产品列表中看到Microsoft Visual F#。如果你没有在那里看到它,它没有正确安装,这可能是你没有得到intellisense的原因。

#3


There is no need to reinstall to fix this problem. Installing the VS 2008 Service Pack 1 fixed Intellisense.

无需重新安装即可解决此问题。安装VS 2008 Service Pack 1固定Intellisense。

#1


Might you have run into this problem? (Note, though the title says XAML, the article also indicates that it breaks F# intellisense.)

你可能遇到这个问题吗? (注意,尽管标题是XAML,但文章也表明它打破了F#intellisense。)

I have also read that uninstalling and reinstalling F# fixed the problem.

我还读到卸载并重新安装F#修复了问题。

#2


If you installed F# via the MSI Installer file (vs. the .zip install), all that's required is that you have the correct extension on your file: .fs, .fsx, or .fsi.

如果您通过MSI安装程序文件(相对于.zip安装)安装了F#,则所需的只是您在文件上具有正确的扩展名:.fs,.fsx或.fsi。

You can tell if the F# Visual Studio components were installed correctly by going to the Help -> About Microsoft menu option. You should see Microsoft Visual F# in the list of installed products. If you don't see it there, it wasn't installed correctly and that's likely why you're not getting intellisense.

您可以通过转到“帮助” - >“关于Microsoft”菜单选项来判断F#Visual Studio组件是否已正确安装。您应该在已安装的产品列表中看到Microsoft Visual F#。如果你没有在那里看到它,它没有正确安装,这可能是你没有得到intellisense的原因。

#3


There is no need to reinstall to fix this problem. Installing the VS 2008 Service Pack 1 fixed Intellisense.

无需重新安装即可解决此问题。安装VS 2008 Service Pack 1固定Intellisense。