简体   繁体   English

如何在code :: blocks中保存“当前视角”?

[英]How to save “current perspective” in code::blocks?

Example: i'd like to always see "CPU Registers" and never see "Scripting Console". 示例:我想始终看到“ CPU寄存器”,而从不看到“脚本控制台”。

Using Code::Blocks, how can i do this, regardless of the project i use? 使用Code :: Blocks,无论我使用哪个项目,我都该怎么做?

You realize the CPU register window won't show anything unless you're actually debugging right? 您意识到除非实际调试正确,否则CPU寄存器窗口将不显示任何内容?

Anyway, to save a perspective in C::B, setup the IDE to the layout you want and just save it. 无论如何,要在C :: B中保存透视图,请将IDE设置为所需的布局,然后将其保存。 In your case, you would do something like the follow: 对于您的情况,您将执行以下操作:

  • have the debug toolbar visible. 使调试工具栏可见。 Enable it by going to View->Toolbars->Debugger. 通过转到视图->工具栏->调试器启用它。
  • display CPU window from debugger toolbar. 从调试器工具栏显示CPU窗口。 Find 'Debugging windows'->'CPU Registers'. 找到“调试窗口”->“ CPU寄存器”。
  • Hide the scripting console. 隐藏脚本控制台。 Go to View->Script Console and uncheck. 转到视图->脚本控制台,然后取消选中。
  • Set the layout to your preference and save. 将布局设置为您的首选项并保存。 Go to View->Perspectives->Save current. 转到查看->视角->保存当前。 Give it a name. 给它起个名字。

The next time you start C::B it'll use the last perspective you were on when you quit. 下次启动C :: B时,它将使用您退出时所处的最后一个视角。 So make sure you exit C::B with the new saved perspective. 因此,请确保使用新保存的透视图退出C :: B。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM