How to Set Up Gedit For Coding

I just found this yesterday. I usually wrote codes using IDE. But IDE is heavy. It became heavier on my machine when I run Ruby On Rails process. It became worse since I run some browsers too for debugging purpose. The result is my machine oftens not responding. This situation really bothered me. I looked at the System Testing menu and I saw the heaviest one was IDE I used. That's it, I had to switch to other lighter tools : Gedit.

Gedit is one of Ubuntu default text editor. It's a text-editor, not IDE. Therefore, it's very light. Much lighter than an IDE. However it's much less powerful if you compare it to any IDE. And fortunately, there are many plugins out there for Gedit to make it much more powerful, without being so heavy as IDE. It's better that those plugins can be installed with some commands below.

sudo add-apt-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate
sudo apt-get install gedit-plugins

Make sure you run all of them in order. And all of them are executed successfully without raising any error. If you got any error when you're running one of them, just Google it. I'm sure there are many sources out there to help you.

Okay, now you have run all of them successfully. Now what ?

Of course, open your Gedit or restart it. Then go to Edit - Preferences. Choose Plugins tab at the top right of the new window and I suggest you to check the following plugins :
  • Snippets
  • Code Comment
  • Embedded Terminal
  • File Browser Pane
  • Find in Files
  • Rails Extract Partial
  • Rails File Loader
  • Session Saver
  • Smart Indent
  • Tab Switch
  • TextMate Style AutoCompletion
But feel free to activate all plugins listed there. Of course, if you feel you don't need it , just go back and uncheck it to deactivate. More plugins means heavier. Don't worry, it won't be as heavy as IDE.

And my most favourite among those plugins is Find in Files. You can use this plugins by running Ctrl + Shift + F. This plugin really makes me feel I used an IDE but it's much lighter. This plugin will enable you to find any codes among the files inside the directory you choose. Very helpful for me.

At last, I don't mean to say that using IDE is bad. It's just heavy for me. And the current condition allowed me not to use IDE. So, this post may be not useful for you. It depends on the case and ... the language you used to write  the codes.