示例構建系統
可以從選單(工具|構建系統|新構建系統)建立新的構建系統。
{
"shell_cmd": "somecommand -u \"$file\"",
"result_file_regex": "^[ ]*File \"(.*?)\"",
"result_line_regex": "^[ ]*File \".*?\", line ([0-9]*)",
"selector": "text.html",
"syntax": "Packages/JavaScript/JSON.sublime-syntax",
"env": {"ENCODING": "utf-8"},
"working_dir": "${project_path:${folder}}",
"path": "C:\\test\\;$PATH"
"linux": {
"variants":
[
{
"name": "Word Count (current file)",
"cmd": ["wc", "$file"]
}
]
}
}
可以使用選單(工具|構建)或按下來啟動構建 Ctrl+B。