Case Brackets Ident twice in Relation to the Switch Brackets

4 posts, 0 answers
  1. John
    John avatar
    11 posts
    Member since:
    Sep 2010

    Posted 31 Jul 2012 Link to this post

    I would like the following:

    switch (eTest)
    {
        case eTest.test:
        case eTest.test2:
        {
            if (count == other)
            {
                int celebrate = 1;
            }
     
            int newInt = 2;
     
            break;
        }
        default:
            break;
    }

     

    However, I keep getting:

    switch (eTest)
    {
        case eTest.test:
        case eTest.test2:
            {
                if (count == other)
                {
                    int celebrate = 1;
                }
     
                int newInt = 2;
     
                break;
            }
        default:
            break;
    }

     

    And I can't seem to find a setting to change that would provide what I want, please assist.  I've tried unselecting Indent Case Labels which worked as I thought and moves the Case Labels to the Switch brackets.  I have also tried under Bracing Positions the different settings for Case label: Same Line/New Line/ Indented and non of those did what I was looking for.

    Thank You!

  2. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 03 Aug 2012 Link to this post

    Hello,

     Thanks for contacting us.
    Unfortunately, we do not provide such an option. It seems we are offering the standard indentation or a little bit further to the right, but not the other way. We will discuss adding this kind of option within the team, but it will remain this way for now.
    Thanks and have a nice day.

    Greetings,
    Zdravko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 03 Aug 2012 Link to this post

    Hi,

     

    Kind regards,
    Zdravko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. John
    John avatar
    11 posts
    Member since:
    Sep 2010

    Posted 03 Aug 2012 Link to this post

    Thanks for the reply that's what I thought but just wanted to make sure there wasn't a configuration option I was missing somewhere.  The reason was we were developing a style guide looks like I'll just use your default indention for now.
Back to Top