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
Please sign in to leave a comment.
auto-formatting on ":" is VS' feature... Maybe we should override it....
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!"
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!
>>
>> Secondly:
>> What about the ability to completely fill a switch block with every
>> possible option from an enum?