Search code examples
editorsublimetext2text-editorsublimetext

sublime text : open containing folder


I'm working on some file in my sublime text 2 editor, and I want to open a folder in which that file resides.

I know there is a 2 step procedure to do this already

step 1: right click and reveal in sidebar (ctrl+shift+r)
step 2: right click on the same file in sidebar and click open containing folder.

I would like to know if there is only one shortcut key to do the same. This is something that I use quite often.


Solution

  • You can add the line below to your Default (Windows).sublime-keymap:

    { "keys": ["ctrl+alt+e"], "command": "open_dir", 
        "args": {"dir": "$file_path", "file": "$file_name"} }