기존에 에디트플러스에서 젠코딩 단축키를 ctrl+E로 잘 사용하고 있었는데,
가끔씩 서브라임텍스트를 켜고 젠코딩을 사용하려면 tab키를 사용해야 해서 안 익숙하더군요.
그래서 서브라임텍스트3에서 젠코딩 단축키를 ctrl+e로 변경하는 방법을 찾아보았습니다.
※출처 :
https://github.com/sergeche/emmet-sublime#overriding-keyboard-shortcuts
Preferences > Key Bindings - User 에 다음 JSON 코드를 삽입해주세요.
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
"operand": "SCOPE_SELECTOR",
"operator": "equal",
"match_all": true,
"key": "selector"
},
// run only if there's no selected text
{
"match_all": true,
"key": "selection_empty"
},
// don't work if there are active tabstops
{
"operator": "equal",
"operand": false,
"match_all": true,
"key": "has_next_field"
},
// don't work if completion popup is visible and you
// want to insert completion with Tab. If you want to
// expand Emmet with Tab even if popup is visible --
// remove this section
{
"operand": false,
"operator": "equal",
"match_all": true,
"key": "auto_complete_visible"
},
{
"match_all": true,
"key": "is_abbreviation"
}
]
}
이제 서브라임텍스트는 닫았다가 새로 열고 ctrl+e를 사용해보세요.