emacs - How can I adjust indentation of my c source code in the entire selected block all at once? -
i'd adjust indentation of source code correctly @ time after select block of it. there function or key can including parenthesis?
here original selected block of sample code i'd adjust indentation.
while(1) { func1(); if( ) { func2(); } } if( x == 0 ) { aa = 1; }
this correctly indented code how want adjust.
while(1) { func1(); if( ) { func2(); } } if( x == 0 ) { aa = 1; }
select code , press c-m-\
, should bound indent-region
:
c-m-\
indent lines in region, though had typed
tab
@ beginning of each line (indent-region
).if numeric argument supplied, indent every line in region column number.
Comments
Post a Comment