Home > Article > Development Tools > How to enter parameters in sublime
Sublime 中输入参数的方法
在 Sublime 中输入参数主要有两种方法:
一、通过命令行参数
text.txt
是您要打开的文件路径,-a
用于指定要打开的文件类型:<code>subl text.txt -a txt</code>
二、通过项目设置
<code class="json">{ "cmd_line_args": ["-a", "txt", "text.txt"] }</code>
-a
指定要打开的文件类型,txt
是文件类型,text.txt
是文件路径。注意:
<code>subl file1.txt -a type1 file2.txt -a type2</code>
<code class="json">{ "cmd_line_args": ["-a", "custom_type1", "custom_file1.txt"], "project_settings": { "file1.txt": { "cmd_line_args": ["-a", "custom_type2"] } } }</code>
The above is the detailed content of How to enter parameters in sublime. For more information, please follow other related articles on the PHP Chinese website!