Code alignment for wrapped lambdas

Answered

Hello

I'm looking for the settings to align wrapped lambdas so that this:

looks like this:

Is that possible?

Thanks a lot

7 comments
Comment actions Permalink

Hello Marco Rebsamen,

Could you please try disabling type name hints for lambda expression parameters by right-clicking on "Teilprobe", selecting the appropriate option? Does this work for you?

There is also a similar ticket about hints that change alignment: https://youtrack.jetbrains.com/issue/RSRP-472729.

 

For Rider:

As a workaround, you can disable type name hints for lambda expression parameters by hitting Alt+Enter -> Configure Inlay Hints -> Hide type parameter hints for ...

0
Comment actions Permalink

Hi Maria

Yes that's ok for the moment. I voted for the Ticket so hopefully this will be fixed in the future.

 

Thank you

0
Comment actions Permalink

Hi Maria

I just had the idea if it is possible to change the font of those hints? Maybe if I use a fixed size font it aligns properly?

Thanks

0
Comment actions Permalink

Marco Rebsamen,

Please try installing 2020.3 EAP8 and change "Font size scale factor" in "ReSharper | Options | Environment | Inlay Hints | General". Let me know how it works for you :)

0
Comment actions Permalink

Hi Maria

Thank you for the download but does this work in Rider? Since I have the problem there...

0
Comment actions Permalink

Marco Rebsamen, as far as I understand, Rider hasn't implemented this feature yet. Please feel free to comment or vote for https://youtrack.jetbrains.com/issue/IDEA-235684

0

Please sign in to leave a comment.