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?
If you prefer using [spacebar] to indent your code rather than using [tab], you can select multiple lines by holding the [alt] key and clicking on the beginning of each line you want to indent. Then, you can press [spacebar] and all the selected lines will be affected. omg it moves!
Capslock + Tab to indent multiple lines at once.
“how to indent multiple lines in vscode” Code Answer's you can also indent a whole section by selecting it and clicking TAB. and also indent backward using Shift + TAB.
You can go to Preferences > Keyboard and then select "Allow Tab key to indent text blocks".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With