알짜게시판

VS Code 설치방법

1. <A HREF="https://sourceforge.net/projects/mingw/files/Installer/" TARGET="_blank"  rel="nofollow">https://sourceforge.net/projects/mingw/files/Installer/</A>
2. mingw-get-setup.exe 다운로드 후 실행
3. 기본 옵션으로 설치
4. MinGW 설치 매니저창에서 Basic Setup - mingw-developer-toolkit, mingw32-base, mingw32-gcc-g++ 체크
  (msys-base 도 생각해봄)
5. 메뉴 - Install - Apply Change
6. Apply 클릭
7. sysdm.cpl
8. 고급 - 환경 변수
9. 시스템 변수 - Path - C:\MinGW\bin 추가

10. VS Code 설치
11. 메뉴 - View - Extensions
12. "korean" 검색
13. Korean Language Pack for Visual Studio Code 선택 및 인스톨
14. VS Code 재시작
15. 메뉴 - 이동 - 파일로 이동
    "ext install c/c++" 입력
16. C/C++ - 설치

20. 메뉴 - 파일 - 기본 설정 - 바로 가기 키
[code]
// 키 바인딩을 이 파일에 넣어서 기본값을 덮어씁니다.
[
    //컴파일
    { "key": "ctrl+f9", "command": "workbench.action.tasks.build" },
   
    //실행
    { "key": "f9", "command": "workbench.action.tasks.test" }
]
[/code]
16. 메뉴 - 터미널 - 기본 빌드 작업 구성
17. "템플릿에서 tasks.json 파일 만들기" 선택
18. "Other 임의의 외부 명령을 실행하는 예" 선택
19. tasks.json 을 아래 내용으로 교체
[code]
{
    "version": "2.0.0",
    "runner": "terminal",
    "type": "shell",
    "echoCommand": true,
    "presentation" : { "reveal": "always" },
    "tasks": [
          //C++ 컴파일
          {
            "label": "save and compile for C++",
            "command": "g++",
            "args": [
                "${file}",
                "-o",
                "${fileDirname}/${fileBasenameNoExtension}"
            ],
            "group": "build",

            //컴파일시 에러를 편집기에 반영
            //참고:  <A HREF="https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher" TARGET="_blank"  rel="nofollow">https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher</A>

            "problemMatcher": {
                "fileLocation": [
                    "relative",
                    "${workspaceRoot}"
                ],
                "pattern": {
                    // The regular expression.
                  //Example to match: helloWorld.c:5:3: warning: implicit declaration of function &#039;prinft&#039;
                    "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning error):\\s+(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "message": 5
                }
            }
        },
        //C 컴파일
        {
            "label": "save and compile for C",
            "command": "gcc",
            "args": [
                "${file}",
                "-o",
                "${fileDirname}/${fileBasenameNoExtension}"
            ],
            "group": "build",

            //컴파일시 에러를 편집기에 반영
            //참고:  <A HREF="https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher" TARGET="_blank"  rel="nofollow">https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher</A>

            "problemMatcher": {
                "fileLocation": [
                    "relative",
                    "${workspaceRoot}"
                ],
                "pattern": {
                    // The regular expression.
                  //Example to match: helloWorld.c:5:3: warning: implicit declaration of function &#039;prinft&#039;
                    "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning error):\\s+(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "message": 5
                }
            }
        },

        // 바이너리 실행(Windows)
        {
            "label": "execute",
            "command": "cmd",
            "group": "test",
            "args": [
                "/C", "${fileDirname}\\${fileBasenameNoExtension}"
            ]
   
        }
    ]
}
[/code]
21. 메뉴 - 파일 - 기본 설정 - 설정
22. 보기 - 명령 팔레트
23. C/C++ 검색
24. C/C++: Edit Configurations 선택
번호 제목 글쓴이 조회 날짜
40 현재 채팅방 USER 부분 5,551 10-27
39 [그누보드] CKEditor 5 플러그인 10 5,379 01-14
38 _headtag 적용후에..최근게시물,외부로그인이 출력이 안됩니다. 5,370 12-07
37 [그누보드] 클라우드플레어(Cloudflare) 사용시 아이피 주소 및 URL Schemes 정정 5,234 07-27
36 답변글 [re] 배경색상 사용자가 바꾸게 하기// 5,185 03-20
35 [윈도우] WMI 복구하기 1 5,172 08-20
34 [PHP] Curl 을 이용하여 파일 다운로드 5,172 01-19
33 CAB 파일때문에 문제 일때 5,168 11-30
32 답변글 [re] 안종윤님께서 작성해주신 메뉴얼입니다. 5,133 12-13
31 [그누보드] CKEditor 5 플러그인 4,407 08-27
30 [윈도우] WinHTTP 사용에서 12175 에러 발생시 4,218 04-04
29 [PHP] 실시간 화면 출력 3,918 08-04
28 WinDivert 오류코드 3,777 01-24
27 [그누보드] 새 글 정리하기 3,313 01-28
26 구글 google 영어 사이트로 접속하기 3,067 06-20
25 [PHP] 변수를 텍스트로 저장 및 캐시로 사용하기 2,838 06-30
24 [PHP] 워드프레스와 그누보드 연동 모듈 2,833 12-27
23 [Delphi] bsNone 인 폼에서 드래그 및 크기조절 2,749 07-11
22 [윈도우] 원격 데스크탑 접속 기록 삭제하기 2,599 07-24
21 [PHP] CDN 간단히 구축하기 2,553 05-21
20 [그누보드] 임의로 테마설정하기 2,318 09-16
19 [워드프레스] 회원가입시 닉네임 필드 추가하기 2,289 09-21
18 칼무리 자동실행이 안 되는 원인를 찾았습니다 1 2,267 12-31
17 [워드프레스] 단어 수정하기 2,182 05-19
16 [리눅스] Swap 생성/수정 2,037 09-04
열람 VS Code 설치방법 2,006 06-30
14 [PHP] 지정 폴더 내 PHP 파일 최종 수정일 확인하기 1,937 06-20
13 [안드로이드] 구글 검색기록 끄기 1,883 06-14
12 크롬 알림창 해제하기 1,860 05-28
11 [Delphi] 권한상승 1,812 09-04
10 [리눅스] 바이러스 검사 1,808 09-04