unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Formatting code text
@ 2006-11-18  9:42 une
  2006-11-18 13:37 ` Perry Smith
  0 siblings, 1 reply; 3+ messages in thread
From: une @ 2006-11-18  9:42 UTC (permalink / raw)



When writing code in C++ or Java I notice that I can get the code all nicley
aligned and indented correctly by simply adding a comment at the end of each
line of code. As you enter the //, the line of code moves to its correct
alignment. What I have been doing is writing my code and periodically
tidying it up by adding // at the end of every line of code. My question is,
can I speed this aligning and indenting process up by formatting the entire
file using one command? Emacs obviously knows how much each line should be
indented, but doing it one line at a time by adding // is laborious.
 
PS - I did not mean to cross post, my first post was in the Gnu Emacs forum.
Not sure how this website works yet. Sorry.
-- 
View this message in context: http://www.nabble.com/Formatting-code-text-tf2658909.html#a7416552
Sent from the Emacs - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.786.1163845620.2155.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2006-11-19 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-18  9:42 Formatting code text une
2006-11-18 13:37 ` Perry Smith
     [not found] <mailman.786.1163845620.2155.help-gnu-emacs@gnu.org>
2006-11-19 19:34 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).