알짜게시판

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 선택
번호 제목 글쓴이 조회 날짜
열람 VS Code 설치방법 2,132 06-30
141 시크릿SNI 화이트 리스트 등록하기 2 13,803 06-29
140 구글 google 영어 사이트로 접속하기 3,301 06-20
139 [PHP] 지정 폴더 내 PHP 파일 최종 수정일 확인하기 2,095 06-20
138 [안드로이드] 구글 검색기록 끄기 2,012 06-14
137 [윈도우] 레지스트리 변경값 추적하는 프로그램 6,257 06-14
136 [리눅스] 간단한 보안 체크하기 1,823 06-05
135 크롬 알림창 해제하기 1,990 05-28
134 [그누보드] 훅을 통한 글쓰기, 댓글 알림 70,207 05-26
133 [PHP] CDN 간단히 구축하기 2,716 05-21
132 [그누보드] Syntax Highlight 적용하기 74,656 05-19
131 [워드프레스] 단어 수정하기 2,321 05-19
130 Go 언어 설치하기 1,790 05-16
129 WinDivert1.4 서비스 종료 9,667 02-24
128 ChangeDNS 11,701 10-22
127 [SimpleChat] HTML 태그 처리 방지 패치 16,431 09-16
126 워프 무료 SSL 16,010 09-10
125 윈도우 용 git 15,977 08-31
124 윈도우 8 4만원에 17,375 07-04
123 [광고아님] 비용절감 + 기능 + 편리함 = 클라우드 서버 15,754 07-02
122 크로스 브라우져 문제 때문에 고생하시는 분들께 드리는 팁 14,789 06-29
121 사이트/하위폴더 비밀번호 걸어주는 예제 와 소스 다운받기 15,149 06-27
120 사이트 카피하는 복사기들 때문에 골치가 아프신 분들을 위해서 18,681 06-26
119 러시아 친구가 알려준 jQuery 컨닝 sheet 16,746 06-26
118 js코더들에게 유용한 jsFiddle 과 jsbin 17,677 06-26
117 K클리너 비스타 사용가능합니다~ 4 18,560 03-27
116 [SimpleChat] 저작권 등을 생각해서 일단 지웁니다. 15,337 02-28
115 [PHP] 파일형 멀티(?) 카운터 19,853 08-31
114 오른쪽 마우스 해제 8 36,243 05-11
113 답변글 오른쪽 마우스 해제 1 20,218 08-25
112 공유기 설정 안되시는분들 1 19,884 11-18