如何在 Eclipse 中打开控制台窗口?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11112670/
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
How to open Console window in Eclipse?
提问by Evolutionary High
I accidentally closed the Console window in Eclipse, and now I can't see the result of my code being run.
我在 Eclipse 中不小心关闭了控制台窗口,现在我看不到我的代码运行的结果。
How do you open it again?
怎么重新打开?
回答by Matt Ball
From the menu bar, Window → Show View → Console. Alternately, use the keyboard shortcut:
从菜单栏中,窗口 → 显示视图 → 控制台。或者,使用键盘快捷键:
- Mac: Option-Command-Q, then C, or
- Windows: Alt-Shift-Q, then C
- Mac:Option- Command- Q,然后C,或
- 视窗:Alt- Shift- Q,然后C
回答by Vito Arcidiacono
the only solution for me was:
对我来说唯一的解决方案是:
click on window->close all perspective (you can try also close perspective)
单击窗口->关闭所有透视图(您也可以尝试关闭透视图)
after this, in the top right corner click on: open perspective->resource
之后,在右上角单击:打开透视图->资源
done
完毕
回答by Prabhu Chaitanya
Just open the Window(in eclipse IDE) -> click on Reset Perspective. It worked for me.
只需打开窗口(在 Eclipse IDE 中)-> 单击重置透视图。它对我有用。
回答by delicateLatticeworkFever
The "trim stack" is a vertical icon bar that should appear, if it isn't there already, on one side of the main window. Back when this answer was originally written, it was down the left hand side (of which I had a screen shot that unfortunately was uploaded to some image paste bin place and not Stack Overflow, then linked, and has since been lost). Not being much of an eclipse user currently I don't know if this is still the case.
“修剪堆栈”是一个垂直的图标栏,它应该出现在主窗口的一侧,如果它还没有的话。回到最初撰写此答案时,它位于左侧(其中我有一个屏幕截图,不幸的是上传到某个图像粘贴箱位置而不是 Stack Overflow,然后链接,此后丢失了)。目前我不是一个 eclipse 用户,我不知道是否仍然如此。
It contains icons for each sub-window that is minimized, so if none of them are minimized, there is no trim stack. Try minimizing the Package Explorer/Navigator window and you should see it appear. You can then click the "Restore" icon (the overlapping squares at the top) in the trim stack to get the window back.
它包含每个最小化的子窗口的图标,因此如果它们都没有最小化,则没有修剪堆栈。尝试最小化 Package Explorer/Navigator 窗口,您应该会看到它出现。然后,您可以单击修剪堆栈中的“恢复”图标(顶部的重叠方块)以恢复窗口。
BUT -- and it's not consistent -- sometimes with Eclipse Juno when the window with the Console, etc, is minimized and there is no trim stack, the trim stack doesn't appear and using "Show View" does nothing. The way around that I've found is to minimize some other window, then the trim stack appears and the Console icon (blue & white monitor square) appears. Click that and the Console, etc. appears in a pop-up. Click the Restore icon in that pop-up and it will become part of the main window again.
但是——而且它不一致——有时在 Eclipse Juno 中,当带有控制台等的窗口被最小化并且没有修剪堆栈时,修剪堆栈不会出现并且使用“显示视图”没有任何作用。我发现的解决方法是最小化其他一些窗口,然后出现修剪堆栈并出现控制台图标(蓝色和白色监视器方块)。单击它,控制台等会出现在弹出窗口中。单击该弹出窗口中的“恢复”图标,它将再次成为主窗口的一部分。
回答by Charles S
I also deleted my eclipse console by mistake, however what worked best for me was to type "console" in the "Quick Access" box to the right of the menu and that brought it right back! I'm running version 4.2.1, not sure if this Quick Accessbox is available in other versions.
我还错误地删除了我的 Eclipse 控制台,但是对我来说最有效的是在菜单右侧的“快速访问”框中键入“控制台”,然后将其带回来!我正在运行 4.2.1 版,不确定此 Quick Accessbox 是否在其他版本中可用。
回答by Girish K
Just press Alt+Shift+Q,cfor quick access.(In windows)
只需按Alt+Shift+Q, 即可c快速访问。(在 Windows 中)
回答by Equinoxinator
Window > Perspective > Reset Perspective
窗口 > 透视 > 重置透视
回答by Saiteja
Better to save the code first, windows -> Perspective -> close all Perspective. Then from windows -> Perspective -> open your desired perspective. Now you can all the tab which required for the perspective
最好先保存代码,windows -> Perspective -> close all Perspective。然后从 windows -> Perspective -> 打开你想要的视角。现在您可以使用透视图所需的所有选项卡
回答by user7199670
For C/C++ applicable
适用于 C/C++
Window -> Preferences -> C/C++ -> Build -> Console
窗口 -> 首选项 -> C/C++ -> 构建 -> 控制台
On Limit Console output field increase a desired number of lines.
在限制控制台输出字段增加所需的行数。
回答by Star
- Open Eclipse
- Click on Window
- Go to Show view
- Click on Console
- Minimize it now or drag it to the bottom and it will split between your console and other screens
- 打开日食
- 点击窗口
- 转到显示视图
- 点击控制台
- 现在将其最小化或将其拖到底部,它将在您的控制台和其他屏幕之间拆分