Format for switch statements
Hi there ... :)
IS it possible to autogenerate a switch statement, with this format:
switch (x)
{
case 0:
{ // don't want the brace indented
break;
}
case 1:
{
break;
}
}
Rather than:
switch (x)
{
case 0:
{
break;
}
case 1:
{
break;
}
}
Please sign in to leave a comment.
How about "Live Templates" ?
That would do it, but the main problem is the formatting is done while I'm typing in the case statements.
A live template would do as a compromise though ...
"Rayz" <no_mail@jetbrains.com> wrote in message
news:4369703.1061748586810.JavaMail.itn@is.intellij.net...
>
>
>
>
+10
I've been asking for this for a long, long time.
--
Jordan Zimmerman
http://www.jordanzimmerman.com
+I've been asking for this for a long, long time.
+
Really?
Is this format commonly used?
If it is, then perhaps JetBrains should look into supporting it.
It's a format that I use in my code upon occasion.