You can hide all metrics by disabling “Code Vision” (CTRL+SHIFT+A + code vision
for a quick access in the settings).
You can also hide specific metrics by right clicking on it.
It is also possible to toggle the hints globally with the action Toggle Inlay Hints Globally
(accessible with CTRL+SHIT+A + Toggle Inlay
)
You can also assign a shortcut to this action.