launch sublime text 3 from the command line code example
Example 1: open sublime text 3 from terminal mac
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Example 2: how to run your code in sublime text
Step1: Go to tool this is loacted at the top
Step2: click build
Shorcut: a shortcut to run it is ctrl+b
Example 3: open sublime text 3 from terminal mac
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
export EDITOR='subl -w'