Dec 182012

I recently started using the excellent Sublime Text 2, and it’s awesome. It annoyed me though that you couldn’t open files with it directly from the right click context menu in Windows like you can with Notepad++, so I made a registry file that accomplishes that.

IMPORTANT 1: The file makes changes in the registry, use it at your own risk!
IMPORTANT 2: You need to open the file in a text editor and change the path to sublime_text.exe if it’s not located at C:\Program Files\Sublime Text 2\sublime_text.exe.

Download, (edit if needed) and run this file. Now you should be able to open files and folders by right clicking!


Update: You can add a “open with” context menu for Sublime by clicking a checkbox in the installer (I must have missed it). It doesn’t add an option to open folders as projects though, so you can use this reg file if you need that.

 Posted by at 16:56
  • Nuision

    Many thanks for this much appreciated :)

  • cb meeks

    I modified this a little and put it in a repo. Hope someone will find it useful.

  • ZedeX

    Just what I needed! Thanks dude :)

  • vasek

    thanks so much!!! much appreciated…

  • RobinHoody

    awesome, worked perfectly. Thanks!

  • Ricky Orlando

    just need to execute the reg file,very easy

  • Andre Wicaksono

    Thank you so much.

    Greetings from Indonesia. :-)

  • GigaC

    works fine for me, but when I click open folder it opens two instances of the application. any ideas ?

    • Danik

      That could be becuase Sublime saves the last session, so if you open a folder as project it will also open that session (so you don’t lose your opened files). Does it still happen when you have an instance of Sublime running before opening a folder?

      • still

        Still happens. I use st3