Results 1 to 3 of 3

Thread: [RESOLVED] C# Beautifier

  1. #1

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Resolved [RESOLVED] C# Beautifier

    Anyone found a C# beautifier that works? Google came up with some real garbage and this site has no search results on C# beautifier.

    I found some sample code but it pastes into the IDE as 1 line:

    Code:
            protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } base.Dispose(disposing); } [WebMethod]  [XmlInclude(typeof(Member))]  public Member[] getMembers() { ArrayList al = new ArrayList(); Member mem = new Member(0, "bob", "bsmith", "password1", "[email protected]", "Initiate", false, DateTime.Now); al.Add(mem); Member mem1 = new Member(0, "jim", "jsmith", "password2", "[email protected]", "Member", false, DateTime.Now); al.Add(mem1); Member mem2 = new Member(0, "ed", "esmith", "password3", "[email protected]", "Officer", false, DateTime.Now); al.Add(mem2); Member mem3 = new Member(0, "neil", "nsmith", "password4", "[email protected]", "Guest", false, DateTime.Now); al.Add(mem3); Member[] outArray = (Member[])al.ToArray(typeof(Member)); return outArray; } } [Serializable] public class Member { public int memberid; public String name; public string username; public string password; public string email; public string comments; public bool disabled; public DateTime created; public Member(int _memberid, string _name, string _username, string _password, string _email, string _comments, bool _disabled, DateTime _created) { memberid = _memberid; name = _name; username = _username; password = _password; email = _email; comments = _comments; disabled = _disabled; created = _created; } public Member() { }
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  2. #2

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: C# Beautifier

    OK found one using better search criteria:

    http://couponmeister.com/beautify.aspx
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    Re: [RESOLVED] C# Beautifier

    Visual Studio can format code: Edit > Advanced > Format Document. The default keyboard shortcut is Ctrl-K, Ctrl-D.

Posting Permissions

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



Click Here to Expand Forum to Full Width