Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper - collapse empty tags in all document

Tags:

resharper

In Resharper7.1 is there a way to collapse all empty XAML tags?

Just like below when I do an Alt+Enter to show a suggestion on the .. would like to do this for the entire document.

Maybe CodeCleanup?

enter image description here

EDIT2: Using code cleanup (Full) does a nice reformat of the code in terms of spacing. However doesn't touch the potentially collapsable tags. Tried these options below too: enter image description here

like image 223
Dave Mateer Avatar asked Mar 25 '26 17:03

Dave Mateer


1 Answers

Starting with ReSharper 8, there is a Collapse empty tags options under
Code Editing → Code Cleanup → XAML:

Code Cleanup

Once configured on a cleanup profile, invoke code cleanup with it.

like image 146
Julien Lebosquain Avatar answered Mar 29 '26 19:03

Julien Lebosquain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!