简体   繁体   English

如何在VS2008中使Intellisense适用于F#?

[英]how do I make Intellisense work for F# in VS2008?

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更好。

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#可以解决此问题的信息。

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. 通过转到“帮助”->“关于Microsoft”菜单选项,可以判断F#Visual Studio组件是否已正确安装。 You should see Microsoft Visual F# in the list of installed products. 您应该在已安装产品的列表中看到Microsoft Visual F#。 If you don't see it there, it wasn't installed correctly and that's likely why you're not getting intellisense. 如果您在该处看不到它,则说明未正确安装它,这可能就是为什么您没有智能感知的原因。

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。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM