Is there a way to define a keyboard shortcut that would open a whole folder with Sublime Text?

I can (obviously) easily open a file, I managed to define such a shortcut for opening a Terminal window at the folder location through keyboard preferences, but I don't know how to do that for 3rd party apps.

  • you can also just drag a folder from finder onto the subl icon in your dock which i find quite useful.
    – mwal
    Dec 3, 2018 at 14:06
  • Thank you ! I'd prefer using the keyboard than dragging the folder but this is good to know
    – Romain
    Dec 3, 2018 at 15:05

1 Answer 1


Open System Preferences

Select Keyboard, then the Shortcuts tab

In the left pane, click on Services

In the right pane, scroll to Files and Folders

Select Open in Sublime Text (or Add to Sublime Text) and click add shortcut

Select a shortcut.

  • This is exactly what I tried but I don't have any option related to Sublime Text in Files and Folders
    – Romain
    Dec 3, 2018 at 15:04
  • Using this tutorial I created an automator service, and now the service appears in Files and Folders, so I was able to create the shortcut.
    – Romain
    Dec 3, 2018 at 15:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .