0.MinGW installer.설치 (MS에 c/c++ for visual studio에 있음)
-설치잘됬나 확인 MinGW에 g++ -v 입력
0.VScode_C/C++ 확장 (Extension) 설치
1.만들고싶은 폴더열어서 -> C++파일생성
2.^+shift+P -> c/c++ Edit configuration(UI) 설정
- Compiler path: 비쥬얼 스튜디오의 기본 경로로 (C:/msys64/mingw64/bin/g++.exe)
- IntelliSense mode : (windows-gcc-x64)
-->이것들이 .vscode하위 json파일에 셋팅값으로 설정되어 있는 것을 볼 수 있다.
3.tasks 설정
- Run Without Debugging(^+F5) >> C++(GDB/LLDB) >> (C/C++:g++.exe build and debug active file )
4.Launch 설정
-디버깅하기: ^+shift+P - (C/C++: Add Debug Configuration) >> (C/C++:g++.exe build and debug active file )
c_cpp-properties.json : 기본설정정보
launch.json : 디버깅설정 담김
task.json : ^+F5 누를 때 정보 담
만약 설정을 다른 것으로 셋팅하고 싶으면 이 세개를 지우고
다시 셋팅하면 된다.