如何强制Eclipse来显示XML的布局和样式的文本? [英] How do I force eclipse to show xml layouts and styles as text?

查看:1165
本文介绍了如何强制Eclipse来显示XML的布局和样式的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近上升到Eclipse 4.2(麦浚龙)与ADT 20.0.3。

I recently moved up to Eclipse 4.2 (Juno) with ADT 20.0.3.

如果我认为一个布局或从旧项目的Eclipse风格恰恰说明了我的适当管制为基础的编辑器。我想编辑语法高亮显示的XML文本。我不明白的方式来插件的编辑器,切换到这种模式虽然会回退到它为它扼流圈上的布局,不能给出一个所见即所得的显示。

If I view a layout or a style from an old project Eclipse just shows me its appropriate controls-based editor. I want to edit the syntax-highlighted xml text. I don't see a way to switch the plugin's editor to this mode although it will fallback to it for a layout it chokes on and can't give a WYSIWYG display for.

任何帮助将AP preciated。

Any help will be appreciated.

修改: 这个问题原来是我的最近的冒险更换主题皮肤Eclipse的4.2 。使用暗朱诺主题,文本和所见即所得视图之间切换,在编辑器底部的按钮完全消失(不只是错误的颜色,零屏幕区域)。切换回默认的主题解决了这个问题。

EDIT: This problem turned out to be a side effect of my recent adventures in themeing Eclipse 4.2. Using the Dark Juno theme, the buttons for switching between text and wysiwyg views at the bottom of the editor disappeared entirely (not just the wrong colours, zero screen area). Switching back to the default theme solves the issue.

有关的黑暗朱诺作者的利益,我发现Eclipse的输出在命令行上(我省略号):

For the benefit of the Dark Juno author, I noticed Eclipse outputting this on the command line (my ellipses):

~$ eclipse
Failed to find defStyle: listViewStyle
...
Failed to find defStyle: textViewStyle
...
Failed to find defStyle: buttonStyle
...

修改2 : 这原来是一个已知的问题与黑暗朱诺:的https:/ /github.com/eclipse-color-theme/eclipse-ui-themes/issues/11

EDIT 2: This turns out to be a known issue with Dark Juno: https://github.com/eclipse-color-theme/eclipse-ui-themes/issues/11

有谁知道的一种方法,使切换到文本,而无需使用按钮,我不能看?

Does anyone know of a way to make the switch to text without using the buttons that I cannot see?

推荐答案

使用Alt + PgDn键以通过内标签切换。

Use Alt+PgDn to switch through the inner tabs.

但是,我们需要从暗朱诺一个永久性的解决方案。希望能尽快得到一个补丁。

But we need a permanent solution from Dark Juno. Hope to get a patch soon.

在那之前使用Alt + PgDn键。

Till then use Alt+PgDn.

这篇关于如何强制Eclipse来显示XML的布局和样式的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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