Sublime Text 3 : keyboard shortcut to reveal file in sidebar

To see where your current file is in the folder sidebar, you can install SyncedSideBar.

However, that has some side effects – sometimes, even if you’ve hidden the sidebar, it pops back up when you switch between files, or search.

Sublime Text 3 has a context menu, with “Reveal in Side Bar” as an option – that highlights the current file in the sidebar (and opens it if it was hidden).

There’s no keyboard shortcut for it by default, but you can add one. Go to to Preferences->Key Bindings-User, and add something like this:

[
    { "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar"}
]

That’ll make CTRL+Shift+R a shortcut to the reveal command.

21 Replies to “Sublime Text 3 : keyboard shortcut to reveal file in sidebar”

  1. How do you get to know what is the command name for a specific action? For example ‘reveal_in_side_bar’ in this case.

  2. Awesome tip. I was getting annoyed with not being able to see my open file in the sidebar.

  3. Hi, I think your blog might be having browser compatibility issues.
    When I look at your blog in Safari, it looks fine but when opening in Internet Explorer,
    it has some overlapping. I just wanted to give you a quick heads up!
    Other then that, fantastic blog!

  4. For anyone wanting the same for Reveal in Finder:

    {
    “keys”: [“ctrl+shift+f”],
    “command”: “open_dir”,
    “args”: { “dir”: “$file_path”, “file”: “$file_name” }
    },

Leave a Reply

Your email address will not be published.