Skip to content

Instantly share code, notes, and snippets.

@officialmofabs
Forked from excaribur/.editorconfig
Last active February 17, 2023 17:05
Show Gist options
  • Save officialmofabs/0774481491dfa00ac52649b288d59e1b to your computer and use it in GitHub Desktop.
Save officialmofabs/0774481491dfa00ac52649b288d59e1b to your computer and use it in GitHub Desktop.
Config vscode environment for 42 school
root = true
[*]
indent_style = tab
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
Add in your vscode inside "settings.json" file
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.renderWhitespace": "all",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
{
"version": "2.0.0",
"configurations": [
{
"name": "C Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/a.out",
"preLaunchTask": "build",
"internalConsoleOptions": "openOnSessionStart",
"logging": {
"moduleLoad": false,
"programOutput": true,
"trace": false
},
"showDisplayString": false,
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true, // set true to enable keyboard input
"osx": {
"MIMode": "lldb"
}
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "clang",
"args": [
"get_next_line.c",
"get_next_line_utils.c",
"-g"
],
"type": "shell",
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared"
},
"problemMatcher": {
"owner": "c",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment