我一直在尝试获取 sublime text 2 来使用 chrome 构建我的 html 项目,但它似乎不起作用,

I've been trying to get sublim text 2 to build my html projet with chrome and it doesn't seem to work,

{
"cmd": ["open" "-a" "Google Chrome" "$file"]

}

这就是我正在使用的代码。

这是我得到的错误:

尝试解析构建系统时出错:意外字符,在 C:..\Chrome.sublime-build:2:17

中出现逗号或右括号

您需要添加逗号

 "cmd": ["open", "-a", "Google Chrome", "$file"]

编辑: 如果我没记错的话,sublime 有一个 View in Browser 包,所以也检查一下