从双显示器切换到单显示器时的 Xcode 窗口位置 [英] Xcode window positions when switching from dual to single monitor

查看:41
本文介绍了从双显示器切换到单显示器时的 Xcode 窗口位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在家工作时,我将 MacBook 连接到我的 20" 显示器作为第二个(右侧)显示器.我在更大的显示器上在 Xcode 中进行所有编辑,并离开菜单栏、调试和文档在笔记本电脑的显示器上.

When I'm working at home I plug my MacBook in to my 20" monitor as a second (right side) monitor. I do all my editing in Xcode on the larger monitor, and leave the menu bar, debugging and documentation on the laptop's monitor.

问题是当我与第二台显示器断开连接并想在笔记本电脑"模式下处理代码时.现在,每当我打开一个文件进行编辑时,它几乎完全显示在屏幕之外,我必须将其拖过去进行编辑.我理解(有点)为什么会发生这种情况,因为我上次在不同的监视器中打开它.我想要做的是重置 Xcode 中的窗口位置,以便编辑窗口完全显示在笔记本电脑显示器上.关于如何做到这一点的任何想法?

The problem is when I disconnect from the second monitor and want to work on code in "laptop" mode. Now, whenever I open a file for editing, it shows up almost entirely off the screen and I have to drag it over to edit it. I understand (sort of) why this is happening, since I last had it open in a different monitor. What I'd like to do is reset the window positions in Xcode so the edit windows show up completely on the laptop monitor. Any ideas on how to do this?

我什至愿意从偏好中删除条目(或设置一个applescript来做),但xcode plist对我来说是不可思议的.

I'd even be willing to nuke entries out of the preferences (or set up an applescript to do it) but the xcode plist is inscrutable to me.

推荐答案

在finder中右击项目,选择显示包内容,删除两个username.*文件.它不是自动化的……但它有效.

Right click the project in finder, select show package contents, and delete the two username.* files. Its not automated... but it works.

此外,如果您使用某种版本控制系统,您可能希望将 username.* 添加到您的忽略模式中.

Additionally if your using some kind of version control system you probably want to add username.* to your ignore pattern.

这篇关于从双显示器切换到单显示器时的 Xcode 窗口位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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