Many online source code indents 2 spaces, how to quickly change to indent 4 spaces or 1 Tab, default setting to 1 Tab is 4 spaces

as described in the title. Indenting 2 spaces makes people look uncomfortable and unclear.

Mar.22,2021

replace


with sed script

use ide to format code

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e596b2-4552c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e596b2-4552c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?