Opening code in Sublime Text 2 did not work.
Arkkimaagi opened this issue · comments
I could not get the Open in Sublime Text feature to work from the DevTools. I'm using Sublime Text 2 and it was running when I tried. Nothing just happened.
Is there some way I can debug this?
I did test it with Sublime Text 3 only with the thought in mind that no one use 2nd version. :) But there is a workaround:
- You install this guy
- And setup a custom protocol handler like this:
Template string: subl://open?url={file}&line={line}&column={column}
Let me know if it works for you.
I was not able to get it working with subl-handler, but instead I got it running with https://github.com/dhoulb/subl and using this as the template:
subl://open?path=/Applications/Sublime%20Text%202.app&url={file}&line={line}&column={column}
So thank you!
PS. It might help others wondering if you'd use Sublime Text 3 instead of just Sublime Text as the version 3 is still in beta. :)
Mikko,
I have just updated DevTools Assistant to solve this issue. Now if both versions of Sublime are installed Assistant prefers Sublime Text 2. Could you please check if it works?
- Quit Sketch DevTools Assistant App if it's running.
- Remove It from
Applications
folder. - Download and install a new version the same way you did it before.
- Relaunch Sketch.
- Enable DevTools panel using
command-option-k
- Go to settings panel and change
Jump To Code Editor
field back toSublime
Now it should work with Sublime 2 if it's installed.
Works like a dream with my Sublime Text 2. I'm closing this as it totally fixed the problem without anything extra needed from the user.
Thank you!