Question

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(){

    }
}
Was it helpful?

Solution

The answer is posted in the comments thanks to @pallandt

Shift + Tab

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top