每当我将文件一直滚动到文本文件的底部时,它就会远远超出最后一行,最终会出现一个空白屏幕。
然后,要查看最后几行文本,我必须向上滚动一点,在巨大的日志文件中,它通常会滚动太多。
我举个例子。
当我一直向下滚动时,这就是我希望看到的:
560 lorem ipsum
561 lorem ipsum
562 lorem ipsum
563 lorem ipsum
564 lorem ipsum
565 lorem ipsum
566 lorem ipsum
567 lorem ipsum
568 lorem ipsum
569 lorem ipsum
570 lorem ipsum
但相反,我看到了这一点:
我知道我可以使用 Ctrl+End。但我想知道的是,是否有办法改变滚动 50 多行的烦人行为。
最佳答案
有一个设置可以控制这个,默认情况下是打开的,除了在 MacOS 上,它被默认禁用:
// Set to false to disable scrolling past the end of the buffer.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
"scroll_past_end": true,
您可以选择
Preferences > Settings
从菜单中将设置设置为 false
禁用此行为。
关于sublimetext3 - Sublime Text 3 - 仅滚动到最后一行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44183522/