Open a folder in Sublime Text 3 using command line

前端 未结 10 1566
旧巷少年郎
旧巷少年郎 2020-12-23 01:53

I\'m trying to open a directory in sublime Text 3.

I can launch sublime from the command line using the subl command.

The help text show the fol

10条回答
  •  没有蜡笔的小新
    2020-12-23 02:46

    To open a folder as a project in Sublime Text, use subl . while in the folder you're trying to open.

    Linux So if you want to open ~/Documents/folder_name, then move to that folder in Terminal cd Documents/folder_name and type the command subl .

    Note This was only tested in Ubuntu with Sublime Text 2.

    Edit Answer found here: http://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/

提交回复
热议问题