Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 9999 - C indentation mode
Summary: C indentation mode
Status: RESOLVED DUPLICATE of bug 45202
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Alain Magloire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 8583
  Show dependency tree
 
Reported: 2002-02-19 10:05 EST by Johan Walles CLA
Modified: 2009-01-09 14:51 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Walles CLA 2002-02-19 10:05:08 EST
Currently there is only one indentation mode available, namely "indent as on the
previous line".  This is fine for editing text, but when editing C I'd like to
see something a lot smarter.

If you need me to elaborate on exactly what I'm after I can do that; until then
I'll just assume you can come up with something nice on your own :-).
Comment 1 Johan Walles CLA 2002-02-20 07:44:27 EST
Adrian: CC:ing you as you said in the news group that this was on your to-do list.
Comment 2 Johan Walles CLA 2002-10-31 06:29:04 EST
Reassigning as LPEX is gone.  Don't know if this bug is relevant for the current
source code editor as it doesn't seem to do any kind of auto indentation while
typing.

This bug is definitely related to bug 8583, and also indirectly related to bug 5179.
Comment 3 Alain Magloire CLA 2002-11-07 14:04:03 EST
We could use the an external program like indent to do the work
and Provide an interface for it, the same way that JDT is currently
doing.  I'll bump this a little higher on the things todo
Comment 4 Johan Walles CLA 2002-11-08 02:40:46 EST
That might help for the case the JDE currently support; when I explicitly ask
Eclipse to "format" the code.

It will not help for what Emacs is currently doing, namely indent stuff as I
type it.  See related bugs as well.

The only sort of interface to external tools that I think would really help
would be some way for Eclipse to run elisp code.
Comment 5 Alain Magloire CLA 2003-10-29 15:36:13 EST
Something to thing about for CDT-2.0

*** This bug has been marked as a duplicate of 45202 ***