Paul Krill
Editor at Large

Microsoft improves F# language hints in Visual Studio

news
Jul 10, 20232 mins

Microsoft is previewing inline type hints, inline parameter name hints, and return type hints for the F# programming language in Visual Studio.

Conceptual image of an individual user working with an extruded virtual display.
Credit: Dean Mitchell / Getty Images

Microsoft has improved type and parameter name hints for the F# language in its Visual Studio IDE, adding return type hints while incorporating tooltips for all hints.

In a blog post on July 5, Microsoft provided an overview of code where developers can spot type hints, return type hints, and parameter name hints for F#, the company’s multi-paradigm programming language targeting the .NET software development platform. F# supports functional, object-oriented, and imperative programming models.

F# hints were inspired by inline hints for the C# language and will be built on top of the dedicated Roslyn API. Introduced as a preview in late-February, F# inline type hints and parameter name hints were intended to improve the F# editor experience in the Visual Studio IDE. These hints are expected to be useful when names of identifiers in code are not intuitive. Hints for F# save developers from having to hover to get information when coding. Hints were made available for the majority of F# features, including tuples and type constructors.

Hints are still in preview and turned off by default. Developers can configure them separately in Options (Go to Tools -> Options -> Text Editor -> Advanced). Long-range plans for hints include implementing a hotkey for toggling hints, making them less intrusive, and including signature hints.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author