dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.9k stars 4.01k forks source link

Better Peek Definition #38459

Open mikadumont opened 5 years ago

mikadumont commented 5 years ago

Customer request copying here:

Version Used: Visual Studio 2019

Steps to Reproduce:

  1. Create a more narrow focus.
  2. Don't want to have to scroll up and down to get the documentation.
  3. Would like to have summary, params, returns (if any), remarks, exceptions (if any). When looking for help on a given method no need to display how the method is implemented (can use Go To Definition for this) and should therefore show the actual documentation.

Expected Behavior: ReSharperCtrlShiftF1

Actual Behavior: peekwindow

jmarolf commented 5 years ago

@cartermp I think F# has a behavior similar to this for QuickInfo. What was learned from the design over there?

cartermp commented 5 years ago

F# example:

image

Each link is clickable and will go to definition.

Big learning there is that lots of folks prefer clicking the links than hitting f12.

allisonchou commented 3 years ago

Notes from today's design meeting (10/26): We will prototype the primitives and behaviors on our side, and if the team still thinks it is a good idea, we will talk to the Editor team about getting APIs. Ideally, this ends up being owned by Editor.