mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-12 23:20:51 +00:00
52 lines
404 B
Text
52 lines
404 B
Text
![]() |
Code:
|
||
|
(lambda ()
|
||
|
(csharp-ts-mode)
|
||
|
(indent-region (point-min) (point-max)))
|
||
|
|
||
|
Point-Char: |
|
||
|
|
||
|
Name: Indent single statement body for if/else. (bug#70345)
|
||
|
|
||
|
=-=
|
||
|
|
||
|
int x;
|
||
|
int y;
|
||
|
|
||
|
if (true)
|
||
|
x = 2;
|
||
|
|
||
|
if (true)
|
||
|
{
|
||
|
x = 2;
|
||
|
}
|
||
|
|
||
|
if (true)
|
||
|
x = 2;
|
||
|
else
|
||
|
y = 2;
|
||
|
|
||
|
if (true)
|
||
|
{
|
||
|
x = 2;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
y = 2;
|
||
|
}
|
||
|
|
||
|
if (true)
|
||
|
x = 2;
|
||
|
else
|
||
|
{
|
||
|
y = 2;
|
||
|
}
|
||
|
|
||
|
if (true)
|
||
|
{
|
||
|
x = 2;
|
||
|
}
|
||
|
else
|
||
|
y = 2;
|
||
|
|
||
|
=-=-=
|