Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Indentation size" disabled in Eclipse XML plugin

When I edit XML files in eclipse, I want tabs to be 4 spaces. I know where to go to change this, but the option is disabled. See the attached screenshot.

enter image description here

How do I make it let me set that to 4?

like image 897
Cameron Ball Avatar asked Jul 30 '14 04:07

Cameron Ball


2 Answers

You can make it simple: set cursor left of the number and scroll the wheel =) It works. Checked.

like image 174
Vijit Avatar answered Sep 19 '22 07:09

Vijit


If you are on Linux or Mac, try eclipse --launcher.GTK_version 2

It could be a GTK 3 bug.

In any case, you can edit .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.xml.core.prefs and place indentationSize=4 there. Better to do so when Eclipse is closed.

like image 38
voronaam Avatar answered Sep 20 '22 07:09

voronaam