7

Issue: No F# Interactive window.

Background: I had F# Interactive working just fine then apparently did something that has made it disappear, and it's not showing when hitting Alt-Enter with code selected.

Expected Result: I thought Alt + Enter opened the FSI window with code selected but it's not happening.

EDIT: Somehow it's back. I now have F# Interactive as an option in the Terminal dropdown where as before it only had Powershell. Wierd but working...

2
  • Isn't the interactive window a visual Studio and not a visual studio code feature? Commented Jun 3, 2019 at 10:44
  • No, it's also in VS Code. Commented Jun 3, 2019 at 10:58

3 Answers 3

10

Open the Command Palette with Ctrl+Shift+P and find FSI: Start command (requires Ionide extension)

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Anyone know how to specify a startup .fsx script, like in Visual Studio proper?
2

According to the docs you can also do the following:

  1. Open the Visual Studio Code settings (File > Preferences > Settings).
  2. Search for the term F# Script.
  3. Click the checkbox that says FSharp: use SDK scripts.

Now you can highlight a line of code (like let foo = 1) and send it to F# Interactive by using Alt + Enter. It should now open the terminal in F# Interactive mode.

Comments

0

Maybe you pressed Ctrl + F and while the search dialog was open, the Alt + Enter key combo failed...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.