Results 1 to 2 of 2

Thread: Generated C# code indentation

  1. #1
    kwaclaw is offline Registered User
    Name: Karl Waclawek
    Organization: Personal
    Project: Whiteboard application
    Join Date
    Sep 2004
    Location
    Oshawa, Canada
    Posts
    159

    Generated C# code indentation

    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
    Karl Waclawek

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. uncompilable code generated by slice2cpp
    By srxavi in forum Bug Reports
    Replies: 6
    Last Post: 03-26-2010, 11:44 AM
  2. Adding docstrings to generated code?
    By Han in forum Comments
    Replies: 2
    Last Post: 01-28-2010, 12:10 PM
  3. How do YOU handle redundant generated slice code?
    By ctennis in forum Help Center
    Replies: 1
    Last Post: 11-10-2006, 03:02 PM
  4. C# code generated for comparison methods
    By kwaclaw in forum Comments
    Replies: 3
    Last Post: 10-11-2005, 01:54 PM
  5. assert() in slice2java generated code?
    By SteveWampler in forum Help Center
    Replies: 2
    Last Post: 04-13-2004, 01:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •