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?

6 comments
Comment actions Permalink

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
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

I think I am misunderstanding something.

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

0
Comment actions Permalink

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

0
Comment actions Permalink

Ahh, I understand now. Thanks!

0

Please sign in to leave a comment.