Open a folder in Sublime Text 3 using command line

前端 未结 10 1548
旧巷少年郎
旧巷少年郎 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:47

    To open sublime in the same folder you can simply type in your commandline:

    subl . 
    

    In order to work you must configure some stuff:

    1) To prevent the opening of previous projects you should set the following properties of your Sublime User Settings:

    "hot_exit": false,
    "remember_open_files": false
    

    2) In order to use subl.exe from anywhere you should add the Sublime folder in the environment variables. I.e. C:\Program Files\Sublime Text 3

提交回复
热议问题