- Open terminal, paste the line below and press enter:
Sublime
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Atom
ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom
-
Quit Terminal and restart it.
-
Type
subl filename.html
to open the desired file in Sublime Text!