Project: appceleratorstudio
Issue TISTUD-3411: JS Editor: improve default for-statement new line indentation
JS Editor: improve default for-statement new line indentation. If the cursor is at the end of the same line as a for or if statement, and at the beginning of the code block, pressing enter should position the cursor one line down and indented. Currently the line does not indent as would be expected. The lines are correctly indented, however, if there is an explicit code block ({}). See screenshots. Steps to Reproduce: 1. Enter code to app.js: {code} for(i in []); for(i in []){}; {code} 2. Place cursor here: for(i in []); and press enter. Actual Result: Cursor appears one line down and NOT indented. Expected Result: Cursor appears one line down AND indented. for(i in []){}; => Note the expected behavior with an explicit code block.
Story points: 5