Indent Size Disabled in Eclipse XML Plugin

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

enter image description here

How do I do this, let me set this to 4?

+6
source share
2 answers

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

+8
source

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 the .metadata / .plugins / org.eclipse.core.runtime / .settings / org.eclipse.wst.xml.core.prefs file and put indentationSize = 4 there. It's better to do this when Eclipse is closed.

+2
source

Source: https://habr.com/ru/post/973080/


All Articles