How to get gedit to auto-indent code April 16, 2023 by Tarik gedit has an auto indentation feature, go to Edit -> Preferences -> Editor -> 3rd line