Switch/case indenting and auto-filling

Firstly:
When entering case statements inside a switch block - pressing ':' drops
my case statements back an indent level - but not when I hit ':' in R# auto-complete
window!

Secondly:
What about the ability to completely fill a switch block with every possible
option from an enum?

Ronnie


2 comments
Comment actions Permalink

When entering case statements inside a switch block - pressing ':' drops
my case statements back an indent level - but not when I hit ':' in R#
auto-complete window!


auto-formatting on ":" is VS' feature... Maybe we should override it....

Secondly:
What about the ability to completely fill a switch block with every
possible option from an enum?


This feature exists.

type:

switch (expr){
}

put cursor between braces and press Alt-Enter
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Hello Eugene,

How cool is that - it was there all along!
Now all I need is an extra parameter in the blank-lines section of the formatting
options to force a blank line between case-blocks!

Ronnie

>> When entering case statements inside a switch block - pressing ':'
>> drops my case statements back an indent level - but not when I hit
>> ':' in R# auto-complete window!
>>

auto-formatting on ":" is VS' feature... Maybe we should override
it....

>> Secondly:
>> What about the ability to completely fill a switch block with every
>> possible option from an enum?

This feature exists.

type:

switch (expr){
}
put cursor between braces and press Alt-Enter



0

Please sign in to leave a comment.