Open AKruimink opened 1 year ago
Thanks for reporting the issue. I have been able to reproduce it. It appears to fall under the bucket of issues caused by a breaking change to the VS SDK related to access modifiers. If you disable "Insert explicit access modifiers on methods" it behaves as expected (return statement and braces all on their own line). Link to #879 for more details on the root SDK issue.
any new versions?
I'm definitely seeing this one myself, though this is just with using snippets. I swear it worked fine at first, but now it's definitely adding extra lines. I feel like it may have something to do with Visual Studio's snippet implementation, if that's what codemaid is leveraging. It's also interesting in that I have a class skeleton template that I use that does not have this issue. Maybe that advises some direction here.
I think this project is not maintained anymore
Environment
Description
Default settings of codemaid, have the foillowing method![image](https://user-images.githubusercontent.com/43521957/195837245-41c4a724-de4a-4da5-9d18-12a01e574348.png)
Run code cleanup, and have the brackets + return moved to the next line![image](https://user-images.githubusercontent.com/43521957/195837447-15188a91-48a6-445b-a609-ee02a997c79c.png)
Not only do I not want it to move it, it also seems to format it very oddly by leaving the brackets and return on the same line.
Steps to recreate
Current behavior
It pushes the body to a single line below the method name.
Expected behavior
I'm expecting it to not push the code to the next line at all, and if it does, that it alteast ensures that its formatted correctly by having the brackets and content all on seperate lines.