How can i enable tabwidth and indent width of 2 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With