문제

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?

도움이 되었습니까?

해결책 2

You can do:

  1. Command + ]: to tab right
  2. Command + Shift + ]: to space right
  3. Command + Shift + [: to move left

다른 팁

You can go to Preferences > Keyboard and then select "Allow Tab key to indent text blocks".

Command - Close Bracket (]) to tab right;

Command Shift Close Bracket to space right;

Same with Open Bracket ([) to move left

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top