This is a migrated thread and some comments may be shown as answers.

Case Brackets Ident twice in Relation to the Switch Brackets

3 Answers 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 31 Jul 2012, 07:35 PM

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!

3 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 03 Aug 2012, 02:53 PM
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.

0
Zdravko
Telerik team
answered on 03 Aug 2012, 02:54 PM
Hi,

 

Kind regards,
Zdravko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
John
Top achievements
Rank 1
answered on 03 Aug 2012, 02:57 PM
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.
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
John
Top achievements
Rank 1
Share this question
or