How to get gedit to auto-indent code

Linuxios picture Linuxios · Nov 23, 2011 · Viewed 95k times · Source

I'm trying to get gedit to auto-indent my code. The auto-indent check-box in preferences doesn't work. Is there a way to get gedit to auto-indent code? (By the way, I only really care about C++ indentation. I don't need indentation for any other language.)

Answer

HarshaNadimpalli picture HarshaNadimpalli · Nov 6, 2012

gedit has an auto indentation feature, go to

Edit -> Preferences -> Editor -> 3rd line