Sublime Text 2:如何将光标定位在缓冲区的开始/结尾? [英] Sublime Text 2: how to position cursor at begin/end of buffer?

查看:182
本文介绍了Sublime Text 2:如何将光标定位在缓冲区的开始/结尾?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不得不问什么似乎是一个基本问题,真是愚蠢.我已经用Google搜索了很多,并且已经检查了Default(OSX).sublime-keymap文件,但是我不知道:

I feel silly having to ask what seems like a basic question. I've Googled plenty, and I've examined the Default(OSX).sublime-keymap file, but I can't figure out:

如何使光标跳到OSX上Sublime2中当前缓冲区的开头/结尾?

分别将Home/End滚动到顶部/底部,但是它们不会将光标放置在缓冲区的开始/末端.

Home/End scroll to the top/bottom respectively, but they do not position the cursor at the begin/end of the buffer.

当然有一种方法可以做到这一点.某些应用程序(例如Intellij)为此使用CMD + Home/End,但这也不起作用.

Surely there is a way to do this. Some apps (e.g. Intellij) use CMD+Home/End for this, but that doesn't work either.

推荐答案

这些对我有用(OS X 10.7.5上的Sublime Text 2 v2.0.1)

These work for me (Sublime Text 2 v2.0.1 on OS X 10.7.5)

  • ⌘-↑:缓冲区的开始
  • ⌘-↓:缓冲区结尾
  • ⌘-↑: start of buffer
  • ⌘-↓: end of buffer

CMD上和下组合键是移动到OS X上文本缓冲区的开头和结尾的默认快捷方式.例如,它们也可以在Safari文本区域中使用.因此,它们不会在键盘映射文件中列出.

The CMD-up and -down combos are the default shortcut for moving to the start and end of text buffers on OS X. They work in Safari text areas, too, for example. As such, they are not listed in the keymap file.

这篇关于Sublime Text 2:如何将光标定位在缓冲区的开始/结尾?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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