Skip to content

Instantly share code, notes, and snippets.

View vhanla's full-sized avatar
🖥️
Programming 4 fun 🐱‍💻

vhanla

🖥️
Programming 4 fun 🐱‍💻
View GitHub Profile
@vhanla
vhanla / Visual C++.sublime-build
Last active May 5, 2021 12:42 — forked from mikhdm/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", "/Za", "${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%;path:/to/folder/where/cl.exe/located",
// e.g. "path" : "%PATH%;C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\",
// this also will set path for vcvars32.bat

Just some notes and references for myself.

  • In bash, you can access your C:\ drive via /mnt/c/
  • ~ = C:\Users\MLM\AppData\Local\lxss\home\mlm and is different from your Windows user directory C:\Users\MLM

How to google things