Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Text editor function to indent multiple lines at once

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?

like image 293
Lance Avatar asked Jan 18 '13 16:01

Lance


People also ask

How do you indent multiple lines 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!

How do you indent multiple lines in Notepad ++?

Capslock + Tab to indent multiple lines at once.

How do you Tab multiple lines at once or code?

“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.


1 Answers

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

like image 93
Bruno Avatar answered Oct 18 '22 13:10

Bruno