Visual Studio 2017

I’m gonna shed light on some of the features, obstacles, tips and tricks in Visual F# Tools that haven’t been covered in the official Microsoft blog

Go to All

It’s the old “Navigate to” feature from Visual F# Power Tools (VFPT), ported to Roslyn UI. You can launch it with Ctrl+, shortcut, as before, or with Ctrl+T:

image

What’s new compared to the VFPT (VS 2015) version:

Filtering symbols by type

image

image

and so on.

The search is now fuzzy, which means symbols are found even if you make typos, like this:

image

CamelHumps is also supported:

image

It works a bit differently than JetBrains’ one though.

Guide lines

Hovering over a line shows the scope this line marks:

image

You can turn off the guide lines for all languages in the settings dialog:

image

It can be disabled via the settings dialog as well:

image

Syntax highlighting

By default only types and type parameters are highlighted. You can customize it here:

image

and here:

image

(use “User Types - Enums” to set color for discriminated unions)

Reference and load directives completion in scripts

File system paths inside #r and #load directives support completion:

1

Issues in RTW

Due to the long Visual Studio stabilization phase, VS 2017 RTW includes a rather outdated Visual F# Tools version, which contains a number of bugs and performance issues:

All these (and many other) issues has been fixed in master branch, and some new goodies has been added:

image

(own properties, inherited properties, own fields, inherited fields, own methods, inherited methods,…, everything else)

image

image