首页 > subl命令怎样使用

subl命令怎样使用

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 current window
-w or --wait: Wait for the files to be closed before returning
-b or --background: Don't activate the application
-s or --stay: Keep the application activated after closing the file
-h or --help: Show help (this message) and exit
-v or --version: Show version and exit


以上突出引用的部分:

subl [arguments] - edit stdin

subl --command <command>: Run the given command

怎样使用?举个例子


subl [arguments] - edit stdin
解释:在subl后紧跟一个文件名表示编辑该文件,比如
subl file.txt表示编辑file.txt文件
subl --command : Run the given command
解释:在subl后跟--开头的命令,则执行该命令,比如
subl --add 新建一个窗口
subl --help显示帮助


subl . 使用sublime text 打开当前文件夹

【热门文章】
【热门文章】