How to get gedit to auto-indent code

后端 未结 4 626
刺人心
刺人心 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 11:18

    The plugin 'intelligent text completion' for gedit does exactly what you describe: https://github.com/nymanjens/gedit-intelligent-text-completion

    For those who are trying to find out how to copy the files intelligent_text_completion.plugin and intelligent_text_completion.py to.local/share/gedit/plugins, please do the following:

    user@example:~/.local/share$ cd ~/.local/share/
    user@example:~/.local/share$ mkdir gedit
    user@example:~/.local/share$ cd gedit/
    user@example:~/.local/share/gedit$ mkdir plugins
    user@example:~$ cp intelligent_text_completion.plugin intelligent_text_completion.py ~/.local/share/gedit/plugins/
    

提交回复
热议问题