Cloud Training (Online)




Using F# Interactive in Visual Studio 2013

If you want to try out some simple F# programs in Visual Studio , you can use the  F# Interactive Window which is shipped with F#.

This feature lets the developers to test small and simple F# code snippets .

Accessing F# Interactive Window in Visual Studio 2013

You can access the F# Interactive Window from the View Menu -> Other Windows option.

image

You can write and execute F# code directly from the F# Interactive Window and use the semicolons to indicate the end of the statement. The F# Interactive Window does not provide the intellisense support and might be a drawback but as an alternative solution , you can create a F# Script file and write the code .

 

image

 

 

Once the F# Code is written , you can select the code and right click in the editor to display the context menu . Select “Execute in Interactive” . This sends the selected code to be executed in F# Interactive Window.

 

image

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.