像下面的代码,需要从终端或cmd 下带参数运行的代码,以前Sublime Text 是不支持的。
现在只有安装这个插件InputArgs 即可。bilalba/InputArgsgithub.com
插件安装方法:
Using Package Control
Install this sublime text 2/3 package via Package Control; search for package: "InputArgs"
或者
OSX
$ cd ~/Library/Application\ Support/Sublime\ Text\ <2/3>/Packages/
$ git clone git://github.com/bilalba/InputArgs.git InputArgs
Linux (Ubuntu like distros)
$ cd ~/.config/sublime-text-<2/3>/Packages/
$ git clone git://github.com/bilalba/InputArgs.git InputArgs
Windows
Copy the directory to: "C:\Users\\AppData\Roaming\Sublime Text <2/3>\Packages"
使用方法:
Standard sublime text build system commands.
Use "ctrl+b" to run the build system and an input dialog will ask for arguments.
New Build Systems can be added through "Tools>Build System>New Build System".