In mac using Text - Mate we can easily auto - indent the characters in the file for Ruby on Rails code in various rb,erb or html.erb files. I am searching for a plugin for GEdit for the same purpose after trying hard I am unable to find any suitable plugin which can work for me. Any clues which plugin I should go for and how to get that ?
-
Have you solved this issue?– pl1nkJun 24, 2012 at 22:32
-
@pl1nk not as if now....and seems there is no plugin for Gedit. Rails plugin is avaialable for eclipse if you want to try that out– Sahil GroverJun 25, 2012 at 4:56
-
Do this question and/or this help?– pl1nkJun 25, 2012 at 12:38
-
the plugins specified in second link adds auto-completion and some other good features but not solves the real solution of aligning text in proper indentation like in textmate or other editors– Sahil GroverJun 25, 2012 at 16:41
Add a comment
|
2 Answers
In the Preferences menu of gedit navigate to theEditor
tab, there you can enable automatic indentation (tick the box to activate it).
-
-
-
it has just file, edit, view, search, tools, documents and help ?? @kosaidpo which one to follow Dec 11, 2011 at 21:39
-
under that entry Edit you ll see a sub-menu named preferences click that then you get an interface there you ll find tabs under the second tab read those options you find what you want good luck ;]– kosaidpoDec 11, 2011 at 22:46
-
Yes I have seen that which states smart indentation. I have checked that but that doesn't align the text which i insert later on. If I start writing code it aligns only that. But in case I have already written the code and now I want to Indent it properly how to do that @kosaidpo Dec 12, 2011 at 6:09
http://www.sublimetext.com/2 seems the best editor to me available for all Operating Systems