Search code examples
sublimetext2keymapping

Change "Next File" and "Previous File" shortcut in Sublime Text 2


I'm having no luck changing the key bindings for switching files in Sublime. Does anybody know that the deal is here? All i'm trying to achieve is cmd+] and cmd+[ to show next and previous files. Then i can use tab and shift+tab for all my indenting.

[
   { "keys": ["super+]"], "command": "Next File" },
   { "keys": ["super+["], "command": "Previous File" }
]

Thanks everyone!


Solution

  • Try this:

    [
      { "keys": ["ctrl+]"], "command": "next_view" },
      { "keys": ["ctrl+["], "command": "prev_view" }
    ]
    

    Of course this goes into the "Key Bindings - User" file.