Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Add tab space to multilple line at the same time in any text editor

If you select a text you can add multiple tab spaces to the all lines simultaneously.

like image 420
kelgwiin Avatar asked Mar 19 '23 12:03

kelgwiin


2 Answers

For that you must select the n lines of the code and press the key tab. If you want remove the tab spaces should select the text and press shift+tab.

I was programming in my job and I accidentally discovered this in the IDE eclipse. I test the same process in the Sublime Text and Geany and it works too.

Y suposse and pressume that works for the most of text editor

like image 163
kelgwiin Avatar answered Apr 06 '23 22:04

kelgwiin


I can confirm the answer from kelgwiin for sublime text.

Depending on your platform you could also do the following in sublime text:

Linux: Hold shift and the right mouse button, then move the mouse up or down to make a column selection.

Windows + OS X: Simply hold down the mousewheel and move your mouse up and and down to select the columns.

Hope this helps!

like image 37
chrisg86 Avatar answered Apr 06 '23 20:04

chrisg86