SpecFlowOSS / SpecFlow.Rider

SpecFlow support for both ReSharper and Rider
MIT License
30 stars 18 forks source link

Fix comments indentation when running "reformat and cleanup" #185

Closed Otiel closed 10 months ago

Otiel commented 1 year ago

When cleaning a .feature file, all comments indentation is removed. For instance, this is my code:

image

After running "reformat and cleanup", all comments get pushed to the left:

image

This makes .feature files hard to read when they're composed of multiple Scenario.

It would be great if comments indentation were modified to match the next step indentation, or at worse, left as they are when running "reformat and cleanup".

Socolin commented 10 months ago

Should be fixed in 1.23. Can you check if this fix you problem ?

The version is available here today, and in a few day in the marketplace: https://github.com/SpecFlowOSS/SpecFlow.Rider/actions/runs/7043312543 on 2023.3 RC

Otiel commented 10 months ago

Yes, I confirm this is fixed in 1.23.

Thanks a lot! ❤️