tylerjames
May 8th, 2007, 02:01 AM
Hey everyone,
Been working through some RoR tutorials and using Gedit to add some code.
Problem is when you load up a pre-generated .rhtml or .rb file it seems that all the functions are only tabbed in about 2 spaces, but when you press the tab key in Gedit it tabs in about 8 spaces. It makes it annoying since I've grown fairly accustomed to keeping things aligned using the Tab key.
I tried to change the tab distance to 2 spaces but that affected everything aversely by moving the code to the left six spaces so that it was in line with the def and end parts of the function.
Is there another way I should be going about this? Or should I just resign myself to aligning functions using the spacebar?
Been working through some RoR tutorials and using Gedit to add some code.
Problem is when you load up a pre-generated .rhtml or .rb file it seems that all the functions are only tabbed in about 2 spaces, but when you press the tab key in Gedit it tabs in about 8 spaces. It makes it annoying since I've grown fairly accustomed to keeping things aligned using the Tab key.
I tried to change the tab distance to 2 spaces but that affected everything aversely by moving the code to the left six spaces so that it was in line with the def and end parts of the function.
Is there another way I should be going about this? Or should I just resign myself to aligning functions using the spacebar?