Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open files with sublime text 3 from terminal?

Is there a way to do it? I looked for a similar question but only found one on MAC OSX. However, I'm using Ubuntu 14.04.

like image 254
sergiomafra Avatar asked Apr 19 '16 12:04

sergiomafra


People also ask

How do I run Sublime Text from Terminal 3?

Type 'Terminus' and select it. Wait for it to Complete installation and Restart sublime text. And save it. Note: The above code is for Linux users for Windows users you have to enter “cmd.exe” in place of “bash”, also here we kept the shortcut key as “alt+1” you can use your own key.

How do you open a file with sublime from terminal Linux?

Usage: subl [arguments] [files] edit the given files or: subl [arguments] [directories] open the given directories or: subl [arguments] - edit stdin Arguments: --project <project>: Load the given project --command <command>: Run the given command -n or --new-window: Open a new window -a or --add: Add folders to the ...

How do I open a Sublime Text in Terminal Mac?

First, navigate to a small folder in Terminal that you want ST to open and enter the following command: /Applications/Sublime\ Text. app/Contents/SharedSupport/bin/subl . NOTE: You may need to replace Sublime\ Text.


1 Answers

Yes ,There's a way. Just Use the command subl to open sublime text from terminal. if you want to open a specific file use subl path/to/the/file.

But sublime text must be installed using ppa. For particular installation of sublime text 3 using ppa refer This Link on .

like image 56
Devansh Upadhyay Avatar answered Sep 18 '22 14:09

Devansh Upadhyay