> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baeum.ai.kr/llms.txt
> Use this file to discover all available pages before exploring further.

# Visual Studio Code

VS Code는 코드 편집, 터미널, 확장 기능을 통합한 개발 도구입니다.

## 사전 준비

* Ubuntu 24.04
* `sudo` 권한
* 인터넷 연결

## 설치 과정

<Steps>
  <Step title="필수 패키지 설치">
    ```bash theme={null}
    sudo apt update
    sudo apt install -y wget gpg
    ```
  </Step>

  <Step title="Microsoft 저장소 등록">
    아래 명령어를 순서대로 실행합니다.

    ```bash theme={null}
    wget -qO- https://packages.microsoft.com/keys/microsoft.asc \
      | gpg --dearmor \
      | sudo tee /etc/apt/keyrings/packages.microsoft.gpg > /dev/null

    echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" \
      | sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null
    ```
  </Step>

  <Step title="VS Code 설치">
    ```bash theme={null}
    sudo apt update
    sudo apt install -y code
    ```
  </Step>
</Steps>

## 설치 확인하기

```bash theme={null}
code --version
```

## 문제 해결

* **저장소 서명 오류**: `/etc/apt/keyrings/packages.microsoft.gpg` 파일 생성 여부를 확인합니다.
* **GUI 없는 서버 환경**: 로컬 VS Code의 Remote SSH 사용을 권장합니다.

## 설치 점검 목록

* 관리자 권한/필수 도구 등 사전 요구사항을 먼저 확인했습니다.
* 설치 후 버전 확인 명령어(`--version`)를 실행해 정상 설치를 검증했습니다.
* PATH/환경변수 변경이 필요한 경우 터미널을 다시 열어 적용 여부를 확인했습니다.
* 문제가 생겼을 때를 대비해 설치 로그 또는 스크린샷을 남겼습니다.

## 관련 문서

<CardGroup cols={2}>
  <Card title="Setup 홈" icon="house" href="/setup/index">
    운영체제별 설치 흐름을 다시 확인합니다.
  </Card>

  <Card title="다음: Node.js" icon="arrow-right" href="/setup/ubuntu/nodejs">
    다음 설치 단계를 이어서 진행합니다.
  </Card>
</CardGroup>
