Rider EAP - What are these +1s all over my code?

Answered

I only see these in the EAP but there is no indication as to what they are for:

What are they telling me?

0
6 comments

Hello,

This a new feature that indicates places in code that lead to increase of cognitive complexity and by how many points in complexity metrics. You can disable the hints by clicking on the code vision item. 

0
Avatar
Permanently deleted user

Even if I disable Code Vision these numbers still appear. Can you confirm how to turn them off?

0

The comment from Olga was correct already. These +1s are called inlay hints, and you can disable them by clicking on the Cognitive Complexity Code Vision item.

0
Avatar
Permanently deleted user

I think I am misunderstanding something.

Do I go to Preferences > Editor > Code Vision and click on Cognitive Complexity there?

0

No, I meant to click on the item that is shown above the method declaration (simple enough / mildly complex / very complex)

1
Avatar
Permanently deleted user

Ahh, I understand now. Thanks!

0

Please sign in to leave a comment.