help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to set comments indentation


From: Lei, Li
Subject: how to set comments indentation
Date: Fri, 22 Apr 2005 22:55:06 -0300

Hi!

Anybody knows how to set comments indentation as well as code lines? For
example, change following block
for(int i = 0; i < num; i++)
{
// comment here
   if (s[i] == const)
   {
// find something
      flag = true;
      break;
   }
}

to

for(int i = 0; i < num; i++)
{
   // comment here
   if (s[i] == const)
   {
      // find something
      flag = true;
      break;
   }
}


Thanks and best regards

Lei, Li


reply via email to

[Prev in Thread] Current Thread [Next in Thread]