Reputation: 4820
I want to make my code more organized. So, whenever I copy a function from my functions.php file and paste it in a class, I need to indent each line of the function one or more times so that it's easier to read and looks nice. Some of my functions are nothing more than huge switch statements and indenting each and every line once has proven to be time consuming and tedious.
Are there any functions in TextWrangler that lets users indent a highlighted chunk of code at once?
Upvotes: 33
Views: 40913
Reputation: 3297
You can do:
Command + ]
: to tab rightCommand + Shift + ]
: to space rightCommand + Shift + [
: to move leftUpvotes: 29
Reputation: 669
You can go to Preferences > Keyboard and then select "Allow Tab key to indent text blocks".
Upvotes: 61
Reputation: 389
Command - Close Bracket (]) to tab right;
Command Shift Close Bracket to space right;
Same with Open Bracket ([) to move left
Upvotes: 16