commandLine 参数

使用 commandLine 参数来设置或查询命令行的可视性。

可用性

query 命令
set 命令
current 参数
default 参数
install 参数

作用域

commandLine 的作用域为当前视图。
current.commandLine 的作用域为当前视图。
default.commandLine 的作用域为全局。
install.commandLine 的作用域为全局。

语法

query commandLine
set commandLine [ default | on | off ]
query current.commandLine
query default.commandLine
set default.commandLine [ install | on | off ]
query install.commandLine 

参数

default 如果对 set commandLine 命令指定 default 参数,则当前视图将使用 default.commandLine 的值来确定命令行的可视性。
on 如果对 set commandLine 命令指定 on 参数,则命令行将在当前视图中可视。如果对 set default.commandLine 命令指定 on 参数,则命令行将对所有将 commandLine 设置为 default 的视图可视。
off 如果对 set commandLine 命令指定 off 参数,则命令行将在当前视图中不可视。如果对 set default.commandLine 命令指定 off 参数,则命令行将对所有将 commandLine 设置为 default 的视图不可视。
install 如果对 set default.commandLine 命令指定 install 参数,则所有将 commandLine 设置为 default 的视图都将使用 install.commandLine 的值来确定命令行的可视性。

描述

如果未对 set commandLine 命令指定任何参数,则将使用 default。如果未对 set default.commandLine 命令指定任何参数,则将使用 install

如果命令行可视,则 query current.commandLine 命令返回 on,或者,如果命令行不可视,则该命令返回 off

即使 current.commandLine 返回 off,也仍有可能使命令行变为可视。如果发出 commandLine 操作(通常与 Esc 键相关联),则命令行将变为可视,直到焦点返回到窗口的编辑区中为止。

示例

query commandLine
set commandLine off
query current.commandLine
query default.commandLine
set default.commandLine off
query install.commandLine 

相关参考
query 命令
set 命令
current 参数
default 参数
install 参数
commandLine 操作