sublime text open with code example

Example 1: open sublime text using 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 .

Example 2: how do i add open with sublime option

To do add a option called open with sublime when you right click:
  	make a file any where you want named as Sublime.reg now right click on it 
  	and then click on edit now you need to paste this - https://pastebin.com/iE7v4bdv
    into your file and then save it now try right clicking you should see the 
    option Open with Sublime Text

Tags:

Misc Example