| 
| Question on tabs and auto code indentation [message #66162] | Mon, 07 April 2003 23:56 |  | 
| Eclipse User  |  |  |  |  | Hello! 
 Is there a way to configure the C/C++ editor to do the following?
 
 1) When starting a new scope/indentation level, indent 2 spaces.
 
 2) When hitting tab at the end of a statement (such as to left-align line
 comments), indent 8 spaces.
 
 3) Insert spaces rather than tab characters in the source file.
 
 I tried setting 'Displayed tab width:' to 2 and selecting "Insert space
 for tabs".  That covers #1 and #3, but #2 doesn't work.
 
 Also, this causes files that do contain tabs to look goofy, since line
 comments were left-aligned assuming tabs would appear as 8 spaces.
 
 I am trying to move from a different editor that I have configured this
 way.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03025 seconds