Add 'sublime text '

Emanuel Rodriguez 2023-04-13 22:03:32 +00:00
parent b7eeb8d0ed
commit afe002586c
1 changed files with 42 additions and 0 deletions

42
sublime-text-.md Normal file

@ -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
```