How to unbind a key binding in Sublime Text 2?

前端 未结 6 630
走了就别回头了
走了就别回头了 2020-12-24 12:02

I have a habit of hitting CTRL+T to open a new tab in ST2. However this invokes the transpose function. I could map the new_file command t

6条回答
  •  独厮守ぢ
    2020-12-24 12:41

    It is possible to overwrite the default bindings of installed packages by creating a custom default bindings file.

    For example I want ctrl-T to transpose, so I have modified default bindings for CTags:

    • Copy c:\Users\USER\appdata\Roaming\Sublime Text 3\Installed Packages\CTags.CTags.sublime-package to tmp.zip
    • From the zip file extract Default.sublime-keymap to c:\Users\USER\appdata\Roaming\Sublime Text 3\Packages\CTags\
    • Modify or remove the binding from this file.

    If the package is updated the custom default binding file is kept, so your bindings are kept and any new bindings will have to be updated manually.

提交回复
热议问题