Skip to content

Instantly share code, notes, and snippets.

@chaliy
Last active August 7, 2018 21:25
Show Gist options
  • Save chaliy/4716454 to your computer and use it in GitHub Desktop.
Save chaliy/4716454 to your computer and use it in GitHub Desktop.
Visual C++ build system for Sublime Text
{
"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"]
}
]
}
@legigor
Copy link

legigor commented Feb 5, 2013

Requesting pull from https://gist.github.com/4716535.git

I've added obvous .cpp file extention to selector pattern :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment