sublime enter키 수정

이클립스의 자바쪽에서 auto-complete을 이용해 파라미터를 입력한 후 enter키를 누르면 End키를 눌렀을 때처럼 커서가 줄의 마지막으로 이동하는데, 이것에 익숙해져있다보니 sublime에서도 하고싶어서 검색하다가 비슷한 것을 발견했다.


[

  { "keys": ["enter"], "command": "move_to", "args": {"to": "eol", "extend": false}, "context":

    [

        { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]'\"]", "match_all": true },

        { "key": "preceding_text", "operator": "regex_contains", "operand": "[(['\"]", "match_all": true },

        { "key": "auto_complete_visible", "operator": "equal", "operand": false }

    ]

  }

]

이 코드를 서브라임에서 Preferences > Key Bindings - User 안에 붙여넣으면 된다.

만약 정말 줄바꿈이 하고 싶을 때는 Shift + Enter 를 사용하면 된다.

참고 : https://coderwall.com/p/td7e-w