Pergunta

I am using Aptana Studio for Mac and would like to know how I can select a block of code and remove the indentation/whitespace. I know you can select a block of code and hit the tab button to indent it, but I need to do the reverse of that if it makes sense.

Example: This:

    if() {
        if(){

        }
    }

Becomes This:

if() {
    if(){

    }
}
Foi útil?

Solução

The answer is posted in the comments thanks to @pallandt

Shift + Tab

Outras dicas

When multiple lines are selected, Tab and Shift-Tab indent and dedent these lines.

When nothing is selected, Tab and Shift-Tab insert or remove whitespace to align the cursor on a tab boundary.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top