Disable the parameter name next to the value
Asked Answered
E

5

9

I have a problem, I can't find the setting that allows me to disable the parameter name from next to the value, in this case, "name" and "seatsNum", which are actually the names of the parameter. They are grayed out and I can't find the setting to not display them.

Example of the problem:

example of problem

Endsley answered 19/8, 2022 at 19:12 Comment(1)
"Display parameter hints" is what you're looking for. Some other people like me, wants to enable this feature. Thanks for asking the question.Fuss
A
12

It should be found under:

Tools > Options > Text Editor > C# > Advanced > Inline Hints > Display inline parameter name hints

Options dialog

Alsatia answered 19/8, 2022 at 19:26 Comment(1)
Thanks a lot, I solved the problem by turning off inline hints unless I hold down ctrl + altEndsley
P
3

If one uses resharper and the hints are coming from there, double click on ctrl key to toggle it on/off.

Paulettapaulette answered 10/7, 2023 at 13:30 Comment(0)
J
0

You can turn them off on a method by right-clicking on the parameter hint itself (At least in Microsoft Visual Studio Professional 2022 Version 17.5.1)

and picking: Hide for this method.

I have no idea how to get them back though... So if anyone knows that'd be great.

I guess you could just open the file in a text editor if its the parameter hint is interfering with doing a cut/copy with the mouse. Clicking on a thingy and Ctrl+W also is handy as it selects the whole thingy.

Judithjuditha answered 12/5, 2023 at 16:23 Comment(0)
T
0

You can turn them on and off by pressing the Alt+F1 shortcut.

Tailorbird answered 22/4, 2024 at 14:57 Comment(0)
C
0

If you would like me to remove the 'condition' parameter name in Assert.That() then what I had to do was to uncheck the checkbox 'Enable Inlay Hints' in Resharper.

enter image description here

Coachwhip answered 22/5, 2024 at 8:42 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.