Skip to main content



      Home
Home » Newcomers » Newcomers » Emacs-style autoformat
Emacs-style autoformat [message #145266] Sun, 26 March 2006 03:08 Go to next message
Eclipse UserFriend
Originally posted by: doker101.yahoo.com

Hi. Is there any way to get Eclipse to autoformat like Emacs does, that
is, with the push of one button (the tab button) while the cursor is
anywhere on the line, the line will automatically autoformat?

Thanks
Re: Emacs-style autoformat [message #145393 is a reply to message #145266] Wed, 29 March 2006 03:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I'm not quite sure if I got you right, but why don't you try to press
Ctrl+Shift+F (Equivalent to Source->Format menu item) while at the line
and see whether this is what you want.
I think (although I'm not sure for this too:) that this item can be
exposed in the toolbar.



Undies wrote:
> Hi. Is there any way to get Eclipse to autoformat like Emacs does, that
> is, with the push of one button (the tab button) while the cursor is
> anywhere on the line, the line will automatically autoformat?
>
> Thanks
>
Re: Emacs-style autoformat [message #145590 is a reply to message #145266] Thu, 30 March 2006 04:22 Go to previous message
Eclipse UserFriend
Undies schrieb:
> Hi. Is there any way to get Eclipse to autoformat like Emacs does, that
> is, with the push of one button (the tab button) while the cursor is
> anywhere on the line, the line will automatically autoformat?
>
> Thanks

Hi Undies,

while editing Java it's the key combination. Press Ctrl-I anywhere on
the line and your line is indented as you are used to. Or mark a region
and format it with Ctrl-I. Have a look under Window->Preferences...
there's a tab exclusively for "Key" mapping (exact location depends on
your Eclipse version).


Bye

Günther
Previous Topic:Debugger can´t find files in subfolders
Next Topic:Eclipse on Solaris
Goto Forum:
  


Current Time: Sun Aug 31 17:34:38 EDT 2025

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

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

Back to the top