Add 'sublime text '
parent
b7eeb8d0ed
commit
afe002586c
|
@ -0,0 +1,42 @@
|
|||
Contains sublime text config stuff
|
||||
|
||||
#### C/C++ build system
|
||||
|
||||
```json
|
||||
{
|
||||
"folders":
|
||||
[
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
|
||||
"build_systems": [
|
||||
{
|
||||
"name": "cl_cpp",
|
||||
"selector": "source.c++",
|
||||
"cmd": ["build.bat"],
|
||||
"shell": true,
|
||||
"working_dir": "${project_path:${folder}}",
|
||||
"file_regex": "^(.+?)\\((\\d+)\\)\\s*:\\s*(?:fatal error|error|warning) C\\d+\\s*:\\s*(.+)$",
|
||||
"variants":
|
||||
[
|
||||
{
|
||||
"name": "run",
|
||||
"cmd": ["build/app.exe"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
where the `build.bat` file is like:
|
||||
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
|
||||
cl /nologo /Zi /Fe:build\app.exe /Fo:build\ /Fd:build\ code/test.cpp
|
||||
```
|
Loading…
Reference in New Issue