Eclipse XML编辑器使用空格缩进 [英] eclipse xml editor indent using spaces

查看:190
本文介绍了Eclipse XML编辑器使用空格缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的月食版本是Mars Release(4.5.0)。首选项-> XML-> XML文件->编辑器,我无法设置缩进大小的值。不能单击 +和-。我还不能输入值!

My eclipse version is Mars Release (4.5.0).Preferences->XML->XML Files->Editor,I can not set the value of Indentation size. The "+" and "-" can not be clicked . I can not input value yet!

推荐答案

遇到相同的问题,我发现以下解决方法:

Had the same problem, I found the following workaround:


  1. 使用文本编辑器打开您的工作区文件夹中的以下文件:
    .metadata / .plugins / org.eclipse.core.runtime / .settings /org.eclipse.wst.xml.core.prefs

  2. 更改或添加以下行( 4只是示例): indentationSize = 4

  3. (重新)启动Eclipse

这篇关于Eclipse XML编辑器使用空格缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆