Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Emacs question-formatting code text
une
post Nov 18 2006, 04:52 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 25-September 06
Member No.: 7,317



When writing code in C++ or Java using emacs I notice that I can get the code all nicely 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.
Go to the top of the page
 
+Quote Post

Posts in this topic
- une   Emacs question-formatting code text   Nov 18 2006, 04:52 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th October 2017 - 09:58 AM