Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i enable tabwidth of 2 in eclipse for erb?

Tags:

eclipse

erb

How can i enable tabwidth and indent width of 2 in erb files in Eclipse ?

like image 630
Teodor Pripoae Avatar asked May 02 '11 14:05

Teodor Pripoae


1 Answers

If you're using the Aptana Studio 3/RadRails plug-in (formerly Ruby Development Tools), then the setting should be under Window > Preferences > Aptana > Editors > Ruby: ruby editor

If you're using the default Eclipse text editor, then you'll need to change the "Displayed tab width" setting under Window > Preferences > General > Editors > Text Editors: default editor

I suppose it's also possible that you've mapped the .erb file extension to a completely different editor in Eclipse, in which case you'll need to change the tab width for that editor. Specific editor preferences supercede the general text editor preferences.

like image 100
Justin Garrick Avatar answered Sep 23 '22 14:09

Justin Garrick