Skip to content

Instantly share code, notes, and snippets.

@legigor
Forked from chaliy/Visual C++.sublime-build
Last active December 12, 2015 04:48
Show Gist options
  • Save legigor/4716535 to your computer and use it in GitHub Desktop.
Save legigor/4716535 to your computer and use it in GitHub Desktop.
{
"cmd": ["cl", "${file}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp, source.c++",
// By default cl is not in your PATH, so add it to your path
// or uncomment "path" and check that it has correct value
//"path": "path:/to/folder/where/cl.exe/located",
"shell": true, // Without this sublime has hard times to parse "&" in out command line
"variants":
[
{
"name": "Run",
"cmd": ["cl", "${file}", "&", "${file_path}/${file_base_name}.exe"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment