Xcode在键入时滚动文本 [英] Xcode scrolls text while typing

查看:71
本文介绍了Xcode在键入时滚动文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,Xcode似乎在做一些令人讨厌的事情。

Xcode seems to be doing something annoying today.

我喜欢编辑源代码,以便大致在Xcode窗口的垂直中心键入内容。我不喜欢在窗口的底部或顶部附近键入内容,因为它会在我正在忙于编辑的代码之前或之后隐藏代码。

I like editing my source code so that I'm typing roughly in the vertical center of my Xcode window. I don't like typing near the bottom or the top of the window as it hides code right before or right after the code I'm busy editing.

最近,而在编辑实现文件时,Xcode习惯于滚动文本,以便我在窗口底部附近进行编辑。每当发生任何代码完成时,都会触发该滚动。

Lately, while editing an implementation file, Xcode has a habit of scrolling the text so that I'm editing close to the bottom of the window. This scrolling is triggered every time any code completion takes place.

以前有人见过吗?如果是这样,我该如何关闭它还是仅仅是一个错误?

Has anyone seen this before? If so, how can I turn it off or is it simply a bug?

推荐答案

您可能会遇到一个错误,其中一个文本在同一文件上打开第二个窗口时,视图会意外滚动。如果发生这种情况,请确保该文件未在其他任何窗口中打开。

You may be encountering a bug where one text view scrolls unexpectedly when a second window is open on the same file. Make sure that the file is not open in any other windows if this is what's happening.

这篇关于Xcode在键入时滚动文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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