Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to enable automatic code formatting?
How to enable automatic code formatting? [message #200803] Wed, 21 March 2007 13:09 Go to next message
Eclipse UserFriend
Originally posted by: adam.lipscombe.qucs.co.uk

Hi


I am using eclipse with the MyEclipseIDE plug in.


How do I enable/disable automatic code formatting?

I have tried windows->prefs->java->formatting and I can see how to set the preferred format, but I
cant see how to make it happen automatically.
I still have to press right-click->source->format from the editor.


TIA - Adam
Re: How to enable automatic code formatting? [message #200838 is a reply to message #200803] Wed, 21 March 2007 13:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Adam,

I could be wrong, but I didn't think there was such a thing...


Adam Lispcombe wrote:
> Hi
>
>
> I am using eclipse with the MyEclipseIDE plug in.
>
>
> How do I enable/disable automatic code formatting?
>
> I have tried windows->prefs->java->formatting and I can see how to set
> the preferred format, but I cant see how to make it happen automatically.
> I still have to press right-click->source->format from the editor.
>
>
> TIA - Adam
Re: How to enable automatic code formatting? [message #200902 is a reply to message #200803] Wed, 21 March 2007 16:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam Lispcombe schreef:
> Hi
>
>
> I am using eclipse with the MyEclipseIDE plug in.
>
>
> How do I enable/disable automatic code formatting?
>
> I have tried windows->prefs->java->formatting and I can see how to set
> the preferred format, but I cant see how to make it happen automatically.
> I still have to press right-click->source->format from the editor.

There are situations where you wouldn’t want this. Maybe you haven’t
come across one until now, but they will come.

That said, Ctrl+Shift+F is much faster than grabbing the mouse. (On
some platforms, Esc Ctrl+F will also work).

H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFGAVkve+7xMGD3itQRAv29AJ4gkMb6BL0zxDeviruAw9Q3Cq8wfwCe NNso
V27K9rpp0HYcHqz8ytz0Kdg=
=Oyj/
-----END PGP SIGNATURE-----
Re: How to enable automatic code formatting? [message #200934 is a reply to message #200838] Wed, 21 March 2007 17:40 Go to previous message
Eclipse UserFriend
Originally posted by: csae7511.uibk.ac.at

Hi,

I think by M5 it is possible to perform actions when saving.
Preferences --> Java --> Editor --> Save Actions.

There it is possible to activate actions like formatting the source,
organizing the imports, etc.

HTH,
Stefan

Ed Merks schrieb:
> Adam,
>
> I could be wrong, but I didn't think there was such a thing...
>
>
> Adam Lispcombe wrote:
>> Hi
>>
>>
>> I am using eclipse with the MyEclipseIDE plug in.
>>
>>
>> How do I enable/disable automatic code formatting?
>>
>> I have tried windows->prefs->java->formatting and I can see how to set
>> the preferred format, but I cant see how to make it happen automatically.
>> I still have to press right-click->source->format from the editor.
>>
>>
>> TIA - Adam
Previous Topic:How tthe error message in eclipse are internationalized?
Next Topic:MultiPageEditor Wizard seems broken in 3.2.2
Goto Forum:
  


Current Time: Thu Apr 25 06:10:13 GMT 2024

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

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

Back to the top