dotnet / dotnet/fsharp

Ablity to 'print' F# type information from tooltip

Open
#8,934 4 comments 2 reactions 0 assignees View on GitHub
Area-LangService-ToolTips Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/content/idea/977806/ablity-to-print-f-type-information-from-tooltip.html)._

---

Howevering the mouse over F# terms provides useful type information as tooltips in Visual Studio.

It would be nice to print out these definitions to the console or the F# interactive.

Such definitions can be used to define explit types (for various needs).

Often when writing code, one can end up with complex type signatures. Normally this is of no consequence for development but in some cases one would like to define an explict type base on the inferred type.

A prime example is for converting anonymous records to regular record types.

This will save quite a bit of time for many of us given that the cost of adding such a feature is likely to be not very high

---
### Original Comments

#### Visual Studio Feedback System on 4/7/2020, 03:05 AM:

Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.