open file in sublime from terminal code example

Example 1: how to open terminal in sublime text ubuntu

# 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.

Example 2: 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 3: open file in sublime from terminal

subl path/to/the/file

Tags:

Misc Example