[jbosstools-issues] [JBoss JIRA] (ERT-338) [formatter] Unwanted alignment on Enter when inside array literal [EBZ#356606]
Friendly Jira Robot (JIRA)
issues at jboss.org
Sun Jul 10 05:26:00 EDT 2016
Friendly Jira Robot created ERT-338:
---------------------------------------
Summary: [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
Fix For: Future
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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list