-
-
Save excaribur/3d4e499e198fc6aaf961c17fe61d546b to your computer and use it in GitHub Desktop.
Config vscode environment for 42 school
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
indent_style = tab | |
indent_size = 4 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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