Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 4134 - EC DCR: Add auto-indent if CR pressed in mid-statement (1GIV5LA)
Summary: EC DCR: Add auto-indent if CR pressed in mid-statement (1GIV5LA)
Status: RESOLVED WORKSFORME
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: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 6280 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-10 23:06 EDT by Carolyn MacLeod CLA
Modified: 2010-02-01 06:21 EST (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:37 EDT
From Eclipse Corner: Java Editor feature requests

Using the Java editor, I'm finding myself annoyed with getting to the 
right place on a new line after some white space.

Hitting return at the end of a line should (IMO, and if possible) go to 
"the correct place" (as defined by the user in preferences) to start the 
next line. For example:

String test = someMethod (longArgument1,
                          longArgument2);
System.out.println (test);


Typing the above into the Java editor puts me at the wrong place in each 
case: after longArgument1, it puts me back to the beginning of the line, 
and after longArgument2, it puts me to the same level as the method 
arguments.

Interestingly enough, it gets it right for braces - after a brace on a 
line on its own, I'm indented further in, which is what I want. Does the 
editor have enough nous to know when I've finished a statement?



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

Comment 3 Dirk Baeumer CLA 2002-02-27 08:33:42 EST
Problem still occures in build 20020214.

Comment 4 Erich Gamma CLA 2002-05-09 08:36:03 EDT
not critical for 2.0
Comment 5 Johan Walles CLA 2002-11-04 09:50:34 EST
If voting was enabled (bug 12115) I'd vote for this feature request. 
Unforturnately it isn't, so I'll settle for "me too":

Me too!
Comment 6 Denis Roy CLA 2009-08-30 02:14:15 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 7 Johan Walles CLA 2010-01-31 07:52:44 EST
Just tested this with Eclipse 20090920-1017 and this isn't broken any more.
Comment 8 Dani Megert CLA 2010-02-01 06:19:57 EST
See comment 7 and I verified using 3.6 M5.
Comment 9 Dani Megert CLA 2010-02-01 06:21:47 EST
*** Bug 6280 has been marked as a duplicate of this bug. ***