Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 945
stacker Avatar asked Jun 05 '10 09:06

stacker


3 Answers

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+;.

like image 172
David White Avatar answered Nov 16 '22 01:11

David White


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.
like image 34
Tomas Petricek Avatar answered Nov 16 '22 03:11

Tomas Petricek


No. It copies and executes the selected texts to the interactive window. You need to already have opened the interactive session.

like image 44
Richard Avatar answered Nov 16 '22 01:11

Richard