禁用 Logcat (DDMS) &运行控制台自动打开任何活动 [英] Disable Logcat (DDMS) & Run Console automatically opening on any activity

查看:15
本文介绍了禁用 Logcat (DDMS) &运行控制台自动打开任何活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 Android Studio 外部监视我的 logcat(logcat-color 在另一个屏幕/工作区的模拟器旁边打开)和想阻止 Android DDMS 视图自动在 Android Studio 中打开.它占用了我希望为我的代码保留的屏幕空间.

I monitor my logcat from outside Android Studio (logcat-color open beside my emulator on another screen/workspace) and would like to stop the Android DDMS view from opening within Android Studio automatically. It takes up screen real estate that I'd prefer to keep for my code.

我知道我可以完全删除该视图,但我希望在我使用它快速直接链接到有问题的代码行时保留对它的访问权限.
我可以过滤 logcat 输出以仅显示错误"级别,但这不是一个很好的解决方案,因为如果我想跟踪问题,我会不断更改过滤器以获取周围的日志条目.

I know that I can remove the view entirely but I'd like to retain access to it for the times that I use it for linking directly to a problematic line of code quickly.
I can filter the logcat output to only show 'error' level but that isn't a great solution as I'd be constantly changing filters to get at the surrounding log entries if there were a problem I wanted to trace.

运行控制台也是如此.我也想阻止它打开.

The same is true of the Run Console. I'd like to stop it opening too.

有没有办法访问这两个视图,而无需在有活动时打开它们?我已经查看了设置,但找不到任何可能要修改的候选对象.

Is there a way to have access to these two views without them opening any time there's activity? I've looked through the settings but can't find any likely candidates to modify.

推荐答案

首先,要摆脱运行时打开 logcat,转到 Run -> Edit Configurations... 在主菜单(或通过工具栏下拉菜单),然后取消选中 Logcat 选项卡中的 Show logcat automatically 选项.

First, to get rid of the logcat opening on run, go to Run -> Edit Configurations... on the main menu (or via the toolbar dropdown), then uncheck the Show logcat automatically option in the Logcat tab.

接下来,遗憾的是没有办法永久阻止运行窗口在您运行时弹出,但是有一种解决方法,一旦您习惯了它,就可以完成大部分工作.

Next, unfortunately there is no way to permanently prevent the run window from popping up when you run, but there is a workaround that mostly does the job once you get used to it.

基本上,当运行窗口弹出时,不要使用按钮关闭或最小化它,而是将其向下调整到底部(即抓住窗口的顶部并向下拖动直到它消失).这样,即使它在运行时激活,它也不会显示.点击它(一次,有时两次)可将其恢复到之前的大小.

Basically, when the run window pops up do NOT close or minimize it using the buttons, rather resize it down to the bottom (i.e. grab the top of the window and drag down until it is gone). This way, even though it activates when running, it will not show. Clicking on it (once, or sometimes twice) restores it to it's previous size.

另请注意,每当您访问与运行窗口位于同一区域的工具窗口之一时,它都会重置,您需要再次缩小其大小.不理想,但它工作正常.

Also note that whenever you access one of the tool windows in the same area as the run window it will reset and you will need to resize it down again. Not ideal, but it works okay.

一旦你习惯了总是向下拖动来关闭它,运行窗口就会变得不那么痛苦了.

Once you get used to always dragging it down to close it, the run window becomes much less of a pain.

这篇关于禁用 Logcat (DDMS) &运行控制台自动打开任何活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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