Reputation: 14931
In Visual Studio 2010 pressing Alt + Enter should open F# Interactive?
I'm selecting F# code, and pressing Alt + Enter, but nothing happens!
Upvotes: 9
Views: 2786
Reputation: 3024
The command to assign (in Tools-Options-Keyboard) is called
EditorContextMenus.CodeWindow.ExecuteInInteractive
By default, the hot-key combination, within a TextEditor is Alt+Enter. I like Joel's idea of remapping it (since ReSharper stole that one) to Alt+;.
Upvotes: 13
Reputation: 118865
Try the menu: "View\F# Interactive" (if in F# profile) or "View\Other Windows\F# Interactive" (if in a different profile).
Upvotes: 0
Reputation: 243041
The keybindings depend on the global environment settings (and you can also change them), but:
Ctrl + Alt + F
. Otherwise, you can find the window in View -> Other Windows -> F# InteractiveAlt + Enter
to interactively execute the selected text.Upvotes: 9
Reputation: 108975
No. It copies and executes the selected texts to the interactive window. You need to already have opened the interactive session.
Upvotes: 1