Eclipse:用于在控制台之间切换的键盘快捷键?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3324062/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:55:25  来源:igfitidea点击:

Eclipse: Keyboard shortcut for switching between consoles?

eclipsekeyboard-shortcuts

提问by Sergio Acosta

In Eclipse (I'm using version 3.6 aka Helios), you can use Alt+Command+QC(on Mac OS X or Alt+Shift+QCon Windows/Linux) to give focus to the Console View. Ok. That's good.

在Eclipse(我使用的是3.6版本,又名太阳神),你可以使用Alt+ Command+ QC(在Mac OS X或Alt+ Shift+QC在Windows / Linux)的给予重点控制台视图。好的。那挺好的。

My problem is that in order to switch between consolesinside that view you have to click the ridiculously small arrow next to the 'Display Selected Console' icon. See:

我的问题是,为了在该视图内的控制台之间切换,您必须单击“显示选定的控制台”图标旁边的小箭头。看:

alt text

替代文字

I find that quite annoying because I'm totally keyboard oriented and that is practically the only thing for which I have to use the mouse when in Eclipse. I'm frequently launching several Run Configurations at once, and every one opens a new Console. It is annoying trying to click that little arrow in order to 1) See what consoles are open and 2) switching between them. =(

我觉得这很烦人,因为我完全以键盘为导向,这实际上是我在 Eclipse 中唯一必须使用鼠标的地方。我经常一次启动多个运行配置,每个配置都会打开一个新的控制台。试图单击那个小箭头以 1) 查看打开的控制台和 2) 在它们之间切换是很烦人的。=(

Is there any keyboard friendly way of switching between opened consoles within the Console View?

是否有任何键盘友好的方式在控制台视图中打开的控制台之间切换?

回答by johnwayner

I'm not sure when this feature was added, but at least in Indigo you can cycle through the consoles using the "Next Page" and "Previous Page" commands. These are mapped to Alt+ F7and Shift+ Alt+ F7by default.

我不确定何时添加此功能,但至少在 Indigo 中,您可以使用“下一页”和“上一页”命令循环浏览控制台。这些被映射到Alt+F7Shift+ Alt+F7默认。

回答by zvikico

I'm not sure if you could do this (will be happy to learn something new as always), but, I can offer a workaround.

我不确定您是否可以这样做(会像往常一样很乐意学习新东西),但是,我可以提供一个解决方法。

You can open several console views: in the right most menu in the console select New Console View. Open as many as you need. Each should show a different console. Use the Pin Console button to make sure they don't switch on you.

您可以打开多个控制台视图:在控制台最右侧的菜单中选择新建控制台视图。根据需要打开任意数量。每个都应该显示不同的控制台。使用 Pin Console 按钮确保它们不会打开您的电源。

Now, the problem is reduced to navigating open views with the keyboard. This can be achieved with Cmd+ F7and Shift+ Cmd+ F7.

现在,问题简化为使用键盘导航打开的视图。这可以通过Cmd+F7Shift+ Cmd+ 实现F7

Not ideal, but might be good enough.

不理想,但可能足够好。

回答by Khalid Amiri

In mac you can use option+ F7to switch between consoles. You would have to be in the console for this to work.

在 mac 中,您可以使用option+F7在控制台之间切换。您必须在控制台中才能使用它。