tmartin:dart:~> subl help
Sublime Text build 3211
Usage: subl [arguments] [files] Edit the given files
or: subl [arguments] [directories] Open the given directories
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
-h or help: Show help (this message) and exit
-v or version: Show version and exit
Filenames may be given a :line or :line:column suffix to open at a specific
location.
升华附带的
subl
命令允许您从命令行执行任意命令:command
参数要求您在一个参数中提供命令和所需的任何参数;例如:这将适用于任何命令,就像Sublime控制台一样,
TextCommand
命令以当前view
为目标,而WindowCommand
命令以当前window
为目标subl
命令是一个助手,它将其命令行参数提供给正在运行的Sublime实例并终止;在升华尚未运行的情况下,它首先启动升华,然后传递参数在升华尚未运行的情况下,
command
参数将不起作用,因为subl
在升华启动后立即提供参数,但插件主机需要一段时间才能对命令可用(在升华中,您可以在控制台中将此视为plugins loaded
消息)因此,在执行此操作之前,确保Sublime正在运行,或者先启动Sublime,等待一秒钟左右,然后提供命令,这一点很重要
相关问题 更多 >
编程相关推荐