Custom Editor using editor 2 (SOLVED)

Hello. I can’t open script file in Atom or VS Code. Tried to write the name of the app, path to it in Custom Editor textbox in settings. It doesn’t help. It try to open it in the project folder.
Maybe someone can help.
P.S. Yeap, I know, that I can open project by my own every time and switch to it manually.

Hmm, I have nothing entered in Custom Editor and .script files still open in Atom for me. I guess this is because I have assigned all *.script files to Atom in the OS itself. Maybe @Erik_Angelin knows how this is supposed to work?

3 Likes

Hi!

I’m in front of a Mac right now, perhaps someone on Windows can chime in?

For Atom the path needs to be to the executable inside the bundle, something like this:
/Applications/Atom.app/Contents/MacOS/Atom

Sublime:
/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl

Emacs:
Make sure you do (server-start) somewhere in your startup scripts.
Custom Editor: /Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_9/emacsclient
Obviously adjusting the path according to your emacs version.
Open File at Line: +{line} {file}

4 Likes

Thank you! I was trying this path “/Applications/Atom.app” and it didn’t work, but now everything works fine.

3 Likes

For the sake of reference.
If you’re using VS Code on OSX.
This is the path that worked for me:
/Applications/Visual Studio Code.app/Contents/Resources/app/bin

8 Likes