Christian Lenz created NETBEANS-1683:
----------------------------------------

             Summary: Move code up/down should reindent the code inside and 
outside blocks
                 Key: NETBEANS-1683
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1683
             Project: NetBeans
          Issue Type: Improvement
          Components: editor - Formatting & Indentation
    Affects Versions: Next
            Reporter: Christian Lenz


I hope that I don't need to create for each language a new ticket, please let 
me know that. If you move code up or down, from outside of a function or 
outside of an if block or other blocks, it should reindent the code.

{code:javascript}
function test() {
    if(true) {
        
    }

    ^
    |

    console.log("test");
}
{code}

expected behaviour:
{code:javascript}
function test() {
    if(true) {
        console.log("test");
    }
}
{code}

Current behaviour:
{code:javascript}
function test() {
    if(true) {
    console.log("test");
    }
}
{code}

It will still have the same indentation as it has it before.

The correct/expected behaviour is only supported for Java. No support for PHP, 
JS, CSS/SCSS/LESS, HTML/XML. I didn't test it in C/C++ but I guess it will not 
work there too. So this must be a generic language feature.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to