Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 4135 - EC DCR: Auto-indent if tab pressed at start of current line (1GIV5W4)
Summary: EC DCR: Auto-indent if tab pressed at start of current line (1GIV5W4)
Status: RESOLVED DUPLICATE of bug 37472
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 5179 (view as bug list)
Depends on: 33495 34996
Blocks:
  Show dependency tree
 
Reported: 2001-10-10 23:06 EDT by Carolyn MacLeod CLA
Modified: 2008-06-18 05:55 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carolyn MacLeod CLA 2001-10-10 23:06:38 EDT
From Eclipse Corner: Java Editor feature requests

Similarly, the text editor I usually use has a nice feature where 
pressing tab moves the current line to what it considers the right 
position, eg pressing tab on the second line of:

String test = someMethod (longArgument1,
longArgument2);

results in

String test = someMethod (longArgument1,
                          longArgument2);

This is also useful for getting the cursor to the right place on a blank 
line. I wouldn't suggest using tab for this in the Eclipse Java editor, 
but maybe ctrl+tab? (Not sure what that does atm :)


NOTES:
Comment 1 Martin Aeschlimann CLA 2001-10-16 11:13:52 EDT
moved to 'active'
Comment 2 DJ Houghton CLA 2001-10-29 17:33:49 EST
PRODUCT VERSION:
	R0.9

Comment 3 Dirk Baeumer CLA 2002-02-27 08:36:00 EST
Bug is related to bug 4134.
Comment 4 Erich Gamma CLA 2002-05-09 08:36:30 EDT
not critical for 2.0 - defer
Comment 5 Johan Walles CLA 2002-11-04 09:49:49 EST
If voting was enabled (bug 12115) I'd vote for this feature request.  But it
isn't, so I'll settle for "me too":

Me too!

Although I would like to have the TAB key used for this (Carolyn: why not?). 
Also, the summary should say something about Emacs to make this bug easier to find.
Comment 6 Johan Walles CLA 2003-03-12 03:36:25 EST
Apparently the TabNavigator plugin provides this functionality.  According to
its author:

"
Tab Navigator 1.0.1 (just uploaded) works with RC2 and includes a "Java Line
Indent" action that approximates emacs-tab.

Use the keybindings preference page to assign "Tab" to "Java Line Indent"
(you may need to un-assign it from Java Line Navigate first).

NOTE 1:  Reports indicate that TAB does not work as an accelerator on Linux
GTK builds due to GTK restrictions on accelerator keys (bug 33495).

NOTE 2:  Java Line Indent is not perfect.  It does not work on multiple
lines, nor does it handle split sytnatic elements

Find it here:

https://sourceforge.net/projects/zclipse/

and download 1.0.1 of TabNavigator.
"
Comment 7 Johan Walles CLA 2003-03-12 03:44:35 EST
TabNavigator is a workaround btw, not a fix.  I want to see this in Eclipse Proper.

Also, I haven't used TabNavigator myself, so I can't say anything about it (good
or bad).  It seems as its author is quite responsive though, so my guess is it
either works well or will be fixed if you complain.
Comment 8 Johan Walles CLA 2007-08-15 01:38:47 EDT
This is a duplicate of bug 37472.  Somebody authorized, please mark it as such.
Comment 9 Carolyn MacLeod CLA 2007-08-24 16:09:13 EDT
Thanks - marking as dup.

*** This bug has been marked as a duplicate of bug 37472 ***
Comment 10 Dani Megert CLA 2008-06-18 05:55:27 EDT
*** Bug 5179 has been marked as a duplicate of this bug. ***