Community
Participate
Working Groups
When I'm in the middle of a function definition, and press Enter to go to the next line, Eclipse takes me to the end of the line instead of inserting a newline. Please add a way to disable this annoying behavior. More specifically, I type: <ENTER>if (GetSomeValue(inputFileName, At this point, the line looks like (using | to indicate the position of the cursor): if (GetSomeValue(inputFileName,|)) after Eclipse automatically added two )'s. But now, if I press <ENTER> to go to the next line, what I *want* is: if (GetSomeValue(inputFileName, |)) but what I *get* is: if (GetSomeValue(inputFileName,))| That is, the cursor has just jumped out of the parentheses to the end of the line, instead of going to the next line. Multiple people have told me it is not possible to disable this behavior. Please add an option for this. (If this wasn't obvious from the examples, I'm editing C++ code)
If this is during content assist (Ctrl+Space), then this is expect and won't change.
This is unrelated to content assist. It's related to the automating insertion of a closing parenthesis when an opening parenthesis is typed. When this happens, an <enter> just "accepts" the proposed closing parentheses, rather than going to the next line. The automatic closing of parentheses can be disabled in Window -> Preferences -> C/C++ -> Editor -> Typing -> Automatically close -> (Parentheses) and [square] brackets. However, it's possible that some users would prefer to have the automatic closing of parentheses, but not the modified <enter> behaviour. If so, we can add another option to the "Typing" preferences to control that.