问题描述
是否可以使用Visual Studio 2008在F#中获得自动完成功能?也就是说,真正的自动完成功能(您一开始键入就建议您输入单词),而不是您必须手动按下组合键的那种方式?
Is there a way to get autocomplete in F# with Visual Studio 2008? That is, true auto completion (suggest words as soon as you start typing), not the kind where you have to manually press a key combination?
或者,如果不能,因为它确实可以在Visual C#2010中工作:是否缺少它是因为C#具有某些功能而F#没有该功能,还是因为Visual Studio 2010具有而2008却没有?
Or, if not, since it does work in Visual C# 2010: is the lack of it because it's something C# has and F# doesn't, or because it's something Visual Studio 2010 has and 2008 doesn't?
推荐答案
这是C#/F#的区别. F#自动补全功能不会自动启动,直到您喜欢"某种东西之后.因此,例如,当在System.
之后键入Con
时,C#和F#的行为类似,但是只有C#在Sys
之后才开始建议.
It's a C#/F# difference. The F# autocompletion does not start automatically until after you are 'dotting in' to something. So for example both C# and F# have similar behavior when typing Con
after System.
, but only C# starts suggesting after Sys
.
这篇关于F#2008中的自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!