Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Autoindentation in Eclipse editor?
Autoindentation in Eclipse editor? [message #191973] Sun, 27 May 2007 14:24 Go to next message
Eclipse UserFriend
Hi everyone,

I'm new to Eclipse and I can't find a way to auto-indent my C++ code. For
example, when you work with Emacs you can auto-indent your code by
pressing the Tab key, or you can also do it by using the indent region
feature. Is there a plug-in or something that allows you to do this within
the built-in editor of Eclipse? Thanks for your help.

a^2
Re: Autoindentation in Eclipse editor? [message #191981 is a reply to message #191973] Sun, 27 May 2007 20:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: exquisitus.localmachine.org

Alejandro Arag?n wrote:

> Hi everyone,
>
> I'm new to Eclipse and I can't find a way to auto-indent my C++ code. For
> example, when you work with Emacs you can auto-indent your code by
> pressing the Tab key, or you can also do it by using the indent region
> feature. Is there a plug-in or something that allows you to do this within
> the built-in editor of Eclipse? Thanks for your help.
>
> a^2

http://astyleclipse.sourceforge.net/
Re: Autoindentation in Eclipse editor? [message #191988 is a reply to message #191973] Mon, 28 May 2007 04:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mba.cosmigo.ru

Hi Alejandro,

Default key combo is Ctrl+I. You may setup indentation at
Preferences->C/C++->Code Style. Also you may use Ctrl+Shift+F to
auto-format your code.

Alejandro Aragón wrote:
> Hi everyone,
>
> I'm new to Eclipse and I can't find a way to auto-indent my C++ code.
> For example, when you work with Emacs you can auto-indent your code by
> pressing the Tab key, or you can also do it by using the indent region
> feature. Is there a plug-in or something that allows you to do this
> within the built-in editor of Eclipse? Thanks for your help.
>
> a^2
>

--
Best regards
Mikhail Barg


ICQ: 132560784
Re: Autoindentation in Eclipse editor? [message #192068 is a reply to message #191988] Mon, 28 May 2007 23:24 Go to previous message
Eclipse UserFriend
Thank you guys for answering. The plug-in is very good.
Previous Topic:PROBLEM when function and file have same name
Next Topic:Code Assist Suggestion (Member Completion)
Goto Forum:
  


Current Time: Wed Jul 16 11:53:26 EDT 2025

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

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

Back to the top