سؤال

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

    }
}
هل كانت مفيدة؟

المحلول

The answer is posted in the comments thanks to @pallandt

Shift + Tab

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top