Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Question on tabs and auto code indentation
Question on tabs and auto code indentation [message #66162] Mon, 07 April 2003 23:56
Eclipse UserFriend
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.
Previous Topic:which view my program's output goes to ?
Next Topic:Two C++ template questions
Goto Forum:
  


Current Time: Fri May 09 08:37:25 EDT 2025

Powered by FUDForum. Page generated in 0.03467 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top