For VS Code to launch editor from terminal, you can use code from terminal.
But for Sublime there is no direct method. To achieve this in sublime we can achieve it in 2 methods I believe. Lets see one by one
Using Soft Link
After creating soft link just typesublime
in your terminal and sublime open.
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
Using alias
Add alias like below in your.bashrc
or ~/.bash_profile
files
subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
then do load the changes with source
source ~/.bashrc
Hope this helps.
Thanks
Raja
0 comments:
Post a Comment