Search code examples
c#.netvisual-studiovisual-studio-2022

Why does hovering over a DateTimeOffset display the Hour value only?


When I hover over this DateTimeOffset variable, only the Hour value is displayed:

enter image description here

I want to have the full DateTimeOffset back. Where is this actually coming from and how can I set/reset it?


Solution

  • You have Hour pinned. Unpin it and it should restore back to showing the full DateTimeOffset value.

    Expand dt, and you should see Hour is pinned at the top of the list it displays. Click the pin icon and it will unpin it:

    pin icon