---
title: "自定义sublime text快捷键"
author: "tjmljw"
date: "2014-10-20T10:15:41Z"
tags: ["sublime text"]
categories: ["开源软件"]
slug: "sublime-text"
draft: false
lastmod: "2014-10-20T10:17:29Z"
id: 2145386
url: "https://tjmljw.iteye.com/blog/2145386"
---

使用自定义快捷键完成一些事情，方法是打开Preferences下的Key Bidings - User，然后添加下面的文字

 

**1.跳出特定字符**

对于自动补全的括号、引号，右手总要按一下向右光标键，很麻烦是不是，

添加下面这段代码，到时候按一下回车键就OK了

```
[
{ "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
    [
        { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]\\>\\'\\\"]", "match_all": true },
    ]   
  }
]
```