How to get gedit to auto-indent code

后端 未结 4 783
刺人心
刺人心 2021-01-30 10:48

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 rea

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-30 10:53

    Ubuntu 16.04 and Gedit

    1. Activate External Tools Plugin

      Edit → Preferences → Plugins → External Tools

    2. Manage External Tools

      Tools → Manage External Tools

    3. Add a Tool

      • Click the + button at the bottom left of the Manage External Tools window
      • You can rename the new tool to whatever you like, e.g. JSON Formatter
      • Refer to the image below and set it up accordingly

提交回复
热议问题