Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2005

Tip: Looking for answers? Try searching our database.

Eclipse and CDT: re-indenting code

Thread view: 
WildernessCat - 16 Mar 2005 08:31 GMT
I have Eclipse 3.0.1 with CDT 2.1.0 on Win2K. I have looked high and
low for a command to re-indent a badly formatted block of text, but I
can't find it. I mean, I know how to move the code one 'tab' to the
right or to the left, but I'd like Eclipse to automatically fix the
whole indentation in a given code segment. Is that supported?

Thanks in advance,
Danny
Fahd Shariff - 16 Mar 2005 18:51 GMT
I usually do Ctrl+Shift+F to format selected code. Is that what ur
looking for?

Signature

Fahd Shariff

Ulf_N - 16 Mar 2005 18:52 GMT
WildernessCat skrev:
> I have Eclipse 3.0.1 with CDT 2.1.0 on Win2K. I have looked high and
> low for a command to re-indent a badly formatted block of text, but I
[quoted text clipped - 4 lines]
> Thanks in advance,
> Danny

ctrl+shift+F will fix the indentations, but for the whole file. Don't
know how to do it for a separate block. /ulf
Ulf_N - 16 Mar 2005 18:57 GMT
Ulf_N skrev:
> WildernessCat skrev:
>
[quoted text clipped - 9 lines]
> ctrl+shift+F will fix the indentations, but for the whole file. Don't
> know how to do it for a separate block. /ulf
Fahd is right of course. ctrl+shift+F works on a selection too. /ulf


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.