Vim Tips Wiki

Editing

Indenting for Java

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 3: Line 3:
 
|previous=699
 
|previous=699
 
|next=701
 
|next=701
|created=2004
+
|created=April 14, 2004
 
|complexity=basic
 
|complexity=basic
 
|author=dunamin
 
|author=dunamin
Line 48: Line 48:
   
 
----
 
----
Also, in [http://www.cygwin.com/ cygwin] or UNIX-based systems, there's a program called "astyle" which properly indents Java programs, just like cb or indent do for C programs.
+
Also, in [http://www.cygwin.com/ cygwin], there's a program called "astyle" which properly indents Java programs, just like cb or indent do for C programs.
   
 
----
 
----
Prefer using <code>:setlocal</code> from a java ftplugin if you do not want to pollute all types of files with Java settings.
+
Prefer using <tt>:setlocal</tt> from a java ftplugin if you do not want to pollute all types of files with Java settings.
   
 
----
 
----
  Loading editor
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template