1. Visual Studio Code Install (MS, Apple, Linux)
2. Ctrl + Shift + p -> Extension : extension installer ¼±Åà ȤÀº ÁÂÃø ¸Þ´º È®Àå ÅÜ Å¬¸¯
3. C/C++ IntelliSense, debugging, and code browsing Install
4. C/C++ Extension Pack Install
5. C/C++ Snippets Install
6. Language Pack Install
7. MisGW Install
8. Add to System Path C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin
8. Create C/C++ Source File
9. vscode folder in the create Tasks.json copy { "version": "2.0.0", "tasks": [ { "type": "shell", "label": "C/C++: gcc.exe build active file", "command": "gcc", "args": [ "-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "options": { "cwd": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\bin" }, "problemMatcher": [ "$gcc" ], "group": { "kind": "build", "isDefault": true } } ] }
10. vscode folder in the create launch.json copy { "version": "0.2.0", "configurations": [ { "name": "(gdb) ½ÃÀÛ", "type": "cppdbg", "request": "launch", "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "miDebuggerPath": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\bin\\gdb.exe", "setupCommands": [ { "description": "gdb¿¡ ÀÚµ¿ ¼½Ä ÁöÁ¤ »ç¿ë", "text": "-enable-pretty-printing", "ignoreFailures": true } ], "preLaunchTask": "C/C++: gcc.exe build active file" } ] }
11. vscode folder in the create c_cpp_properties.json { "configurations": [ { "name": "Win32", "intelliSenseMode": "clang-x64", "compilerPath": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\bin\\g++.exe", "includePath": [ "${workspaceRoot}" ], "defines": [ "_DEBUG" ], "browse": { "path": [ "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\8.1.0\\include", "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\8.1.0\\include-fixed", "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\include\\*", "${workspaceRoot}" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" }, "cStandard": "c11", "cppStandard": "c++17" } ], "version": 4 }
|