MonoDevelop auto indentation problems when functions end in comments

I’ve noticed a problem with MonoDevelop. Sometimes if the very last thing in a function is a source code comment, the auto-indentation feature freaks out and starts acting strangely throughout the file.
I have to go through every function and make sure there’s no comments at the end.
This has been going on for a year now.
Did anyone else ever come across this issue?

Yes. Comments in MD breaks formatting, syntax highlighting, and a bunch of things.

The solution was to stop using MD.

1 Like

This.

But if you can’t switch, you can at least stop using comments on the ends of lines. That’s generally considered bad style. Comments should go immediately before the line they relate too.

(It’s not technically “comments”. It’s just commented-out code used for debugging/testing. The script is still in development.)

Thanks, I’ll look into Xamarin Studio again…

What? Comments have never broken anything in MD for me. MD bashing won’t help anyone.

Could you post the part of your code that is “broken”?