sudo ln -s /snap/sublime-text/38/opt/sublime_text/sublime_text /usr/local/bin/subl
# how to open terminal in sublime text ubuntu
>> open sublime text 3 editor
>> Ctrl+Shift+P <-- it will open package manager
>> Type install package and Select it.
>> Type terminus
>> install it. once complete installation Ctrl+Shift+P and search for Terminus init then it will open terminal.
//create new folder using terminal or open any existing
npx create-react-app newapp
//newapp is new folder. now open it
cd newapp
//now run following code
sublime .
//your folder will open in visual studio code. for sublime enter follwing code
code .
Sublime has a file called subl and this what you want the systeme to use in order to run it from cmd
so in windows :
>go to files then to your c drive or wherever sublime is in
>go to programes then sublime
>copy that path from the files bar(mine is : C:Program FilesSublime Text)
>windows logo + x
>systeme
>advanced system parameters
>varibale envi...
>on the system variables search for path varibale and double click it
>click new and paste the sublime path you copied and click ok
>go to your terminal and type subl
if u didn't understand follow this : https://www.youtube.com/watch?v=MlnH8t4S4Qw
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
$ subl
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
########### for golbal default settings #############
git config --global core.editor "subl -n -w"
########### for local or folder specific default settings #############
git config --local core.editor "subl -n -w"
sudo apt-get install apt-transport-https
/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl .