开发者

How can I change the view / editor for a file in Eclipse using the keyboard?

Eclipse has a common idiom where when you're editing say an XML file, it may have a "visual" editing view (key/value pairs, tree view, even the Android UI editor), with the option to switch to editing "raw" XML using a tab at the bottom of the window. I can switch between open documents with CTRL+PGUP/PGDN. Is there a way to switch editors?

I do this a ton when editing Android UIs, and always reaching for the mouse / trackpad is getting really old.

ETA: As another, perhaps more common example, consider editing a pom.xml file with the Maven plugin installed. You can get multiple "sub-tabs" for project settings, dependencies, reporting, etc., as 开发者_运维问答well as editing the raw XML directly. I'd like to be able to switch between those tabs with a keyboard shortcut.


As seen on this post https://stackoverflow.com/a/9479062 use Alt + Pg Up and Alt + Pg Down to switch the bottom tabs on the XML editor.


I don't know if there is an existing (standard) key binding to do that. (Indeed, I'm not exactly sure I understand what you are trying to do).

However, if you go to Window > Preferences > General > Keys, you will see lots of commands that currently have no bound keys. Select the command that corresponds most closely to whatever you are trying to do and add a custom key binding.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜