]
Ilya Buziuk updated ERT-338:
----------------------------
Fix Version/s: Neon.1 (4.6)
(was: Future)
[formatter] Unwanted alignment on Enter when inside array literal
[EBZ#356606]
------------------------------------------------------------------------------
Key: ERT-338
URL:
https://issues.jboss.org/browse/ERT-338
Project: Eclipse Release Train
Issue Type: Task
Components: JSDT
Reporter: Friendly Jira Robot
Labels: Future, General, bzira
Fix For: Neon.1 (4.6)
Eclipse 3.7 (I20110613-1736)
JSDT 1.3.0 (20110527214303)
WTP 3.3.0 (20100921193530)
1. Create a new JavaScript file and add this code:
function() {
var myArray = [];
}
2. Put the editing caret between the square brackets, and press Enter.
3. You get
function() {
var myArray = [
];
}
Inside array literals, pressing Enter causes the editor to insert spaces to align the new
line with the opening [ bracket. I expected it to just increase the indentation level.
This happens when using a new workspace with all the default preference settings.