Skip to content

Instantly share code, notes, and snippets.

View mikhdm's full-sized avatar

Dmitrii Mikhailenko mikhdm

  • Textkernel B. V.
  • Amsterdam, Netherlands
  • 22:20 (UTC +02:00)
  • LinkedIn in/mikhdm
View GitHub Profile
@mikhdm
mikhdm / Visual C++.sublime-build
Last active August 1, 2019 13:36 — forked from chaliy/Visual C++.sublime-build
Visual C++ build system for sublime text to exec and compile .c and .cpp files from Subime Text editor.
{
"cmd": ["vcvars32.bat", "&", "cl", "/EHsc", "${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 (preferably)
// or uncomment "path" and check that it has correct value
//"path": "path:/to/folder/where/cl.exe/located",
// this also will set path for vcvars32.bat
"shell": true, // Without this sublime has hard times to parse "&" in out command line