当前位置:网站首页>IDEA close/open reference prompt Usages

IDEA close/open reference prompt Usages

2022-08-09 11:44:00 small pig

A higher version of IDEA will have such variables or methods will have this Usages prompt

It will prompt you where it is used, and I personally think it is very useful, such as the picture below

insert image description here
Click to see where it is used
insert image description here
Include who implements some interfaces
Insert image description here
Then today I found that there is no such hint, just heard someone say this hintIt's not easy to use and it's tasteless
So I searched for the relevant settings, which can be turned on or off freely

Open Setting->Editor->Inlay Hints as shown below
insert image description here
Select Code vision, click on the drop-down box to freely choose whether to display usages or author information
InInsert image description here

Here I remove usages, remove the checkbox and select apply ok
insert herePicture description
Then there is no prompt to use, it is really refreshing, but it is still a bit awkward, maybe I am used to this
insert image description here
Then I picked it back
Insert image description here
Feel good!
Insert image description here
In this way, everyone can set it according to their own needs, I hope it can help everyone

原网站

版权声明
本文为[small pig]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208091128461859.html