suggest setting to keep or remove inner comments

May 6, 2010 at 1:23 PM

SharpSort Developers --

This is a feature suggestion.

As of now, SharpSort will remove comments that appear between methods and other members.

Here is an example.

 

This is the code before running SharpSort...

 

		private void TestMethod1()
		{
		}

		//private void TestMethod2()
		//{
		//}

		private void TestMethod3()
		{
		}

 

This is the code after running SharpSort...

 

		private void TestMethod1()
		{
		}

		private void TestMethod3()
		{
		}

Given that, the suggestion is to add a switch of some kind to allow a user to preserve or remove such inner comments.

HTH.

Thank you.

-- Mark Kamoski

Coordinator
May 26, 2010 at 11:51 AM

You already have that option. On Refactor menu you have Erase not specified members: On. Click on that and then resort your code. At the end you will have ugly (but what you wanted) parts. I know it's not exactly what you wanted, but further improvements could be made. I made this tool only for my personal use and wanted to share it with community. That functionality was good enough for me.