How can i enable tabwidth and indent width of 2开发者_C百科 in erb files in Eclipse ?
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:
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:
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.
精彩评论