在 Textmate 中设置快捷键 [英] Setting Shortcut Keys in Textmate

查看:24
本文介绍了在 Textmate 中设置快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在改用 textmate,我想改变一些事情.我试过谷歌搜索答案,但没有找到关于如何全局重新绑定快捷方式的简单解释.

I am switching to textmate and there are a few things I want to change. I have tried Googling for the answer, but haven't found a simple explanation for how to rebind shortcuts globally.

首先,选项卡切换不适用于 Cmd+Shift+{ 和 Cmd+Shift+} 这几乎适用于所有其他应用程序(FF、终端等)

First, tab switching doesn't work with Cmd+Shift+{ and Cmd+Shift+} This works in nearly every other application (FF, Terminal, etc.)

如何绑定这些键来切换标签?

How do bind those keys to switch tabs?

其次,我要Ctrl+j/k/l/;移动光标,是否可以将该命令重新绑定到箭头键?

Second, I would like Ctrl+j/k/l/; to move the cursor, it it possible to rebind that command to the arrow keys?

提前致谢.

推荐答案

是的.对于箭头键,您可以录制一个宏(Bundles > Macros > Start Recording, [press an arrow], Stop Recording, Save Last Recording.它将使用一个命令 moveLeft: 制作一个宏或类似的.设置一个等效的键,你就完成了.

Yes. For the arrow keys, you can record a macro (Bundles > Macros > Start Recording, [press an arrow], Stop Recording, Save Last Recording. It'll make a macro with the one command moveLeft: or similar. Set a key equivalent and you're done.

对于选项卡切换,请转到系统偏好设置 > 键盘 > 键盘快捷键,并为名为下一个文件选项卡"和上一个文件选项卡"的菜单项添加新的快捷方式.重启 TextMate,大功告成.

For the tab switching, go to System Preferences > Keyboard > Keyboard Shortcuts and add new shortcuts for menu items called "Next File Tab" and "Previous File Tab". Restart TextMate, and you're done.

这篇关于在 Textmate 中设置快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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