stacker
stacker

Reputation: 14931

In Visual Studio 2010 pressing Alt + Enter should open F# Interactive?

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

Answers (4)

David White
David White

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

Brian
Brian

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

Tomas Petricek
Tomas Petricek

Reputation: 243041

The keybindings depend on the global environment settings (and you can also change them), but:

  • The default keybinding for opening F# interacative (if it is closed) is Ctrl + Alt + F. Otherwise, you can find the window in View -> Other Windows -> F# Interactive
  • Then you should be able to use Alt + Enter to interactively execute the selected text.

Upvotes: 9

Richard
Richard

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

Related Questions