示例构建系统

可以从菜单(工具|构建系统|新构建系统)创建新的构建系统。

{
    "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。