Archived

This forum has been archived. Please start a new discussion on GitHub.

Generated C# code indentation

kwaclaw
kwaclaw Oshawa, Canada
After some time I have another chance of using ICE for a proof of concept demo. I do like to look at the generated code, but it is barely readable for me.

The problem is that slice2cs generates whitespace as a strange mixture
of tabs and spaces. I have to set my gloabl options in VS 2005 to have
8 spaces for a tab to make it look OK, but then it impacts my own code.

Why not generate all spaces?
That way it will look the same regardless of editor.

Karl

Comments

  • I agree, we should probably use spaces only. It's unfortunate that Microsoft has chosen to define a TAB as four spaces (at least as default value), while the rest of the world has always used eight spaces :(