[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,88 +2,212 @@
|
||||
id: wiki-2026-0508-integrated-development-environme
|
||||
title: Integrated Development Environment
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [IDE-001]
|
||||
aliases: [IDE, Code Editor, AI IDE, Agentic IDE]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 1.0
|
||||
tags: [software-development, devtools, productivity, dx]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [ide, vscode, jetbrains, cursor, zed, ai-ide, dev-tools]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-04-26
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: unspecified
|
||||
framework: unspecified
|
||||
language: typescript
|
||||
framework: vscode-extension
|
||||
---
|
||||
|
||||
# Integrated Development Environment (IDE, 통합 개발 환경)
|
||||
# Integrated Development Environment
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> "코딩의 생산성을 극대화하는 올인원 워크샵" — 편집기, 컴파일러, 디버거, 버전 관리 등을 하나의 인터페이스로 통합하여 개발자가 로직에만 집중할 수 있게 돕는 소프트웨어 애플리케이션.
|
||||
## 매 한 줄
|
||||
> **"매 IDE 는 이제 LLM 의 인터페이스다 — 코드 + 컨텍스트 + 에이전트가 같은 창에서 만난다"**. 1980 년대 Turbo Pascal 에서 시작된 IDE 는 2026 현재 VS Code/JetBrains/Cursor/Zed 4 강 + Antigravity/Windsurf 같은 agentic IDE 로 분화하며, 단순 편집기에서 LSP+Copilot+Agent 를 통합한 개발 OS 로 진화했다.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
- **추출된 패턴:** 코드 작성부터 실행, 검증까지의 개발 생명주기를 단일 도구 내에서 연동하여 문맥 전환(Context Switching) 비용을 최소화하는 도구 패턴.
|
||||
- **세부 내용:**
|
||||
- **IntelliSense/Auto-complete:** 코드의 의미를 분석하여 적절한 함수나 변수명을 추천.
|
||||
- **Debugging Tools:** 중단점(Breakpoint) 설정, 변수 추적 등을 통해 런타임 오류를 시각적으로 진단.
|
||||
- **Refactoring [[Support]]:** 변수명 일괄 변경, 함수 추출 등 복잡한 코드 수정을 안전하게 지원.
|
||||
- **Extension Ecosystem:** 플러그인을 통해 특정 언어나 기술 스택에 최적화된 기능 확장 가능.
|
||||
## 매 핵심
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
- **과거 데이터와의 충돌:** 단순 텍스트 에디터에서, 최근에는 AI가 코드를 직접 제안하고 수천 개의 파일을 동시에 분석하는 '지능형 워크스페이스'로 진화.
|
||||
- **정책 변화:** Antigravity 프로젝트는 VS Code를 표준 IDE로 채택하며, `ConnectAI`와 같은 자체 확장 프로그램을 통해 AI 기반의 자동화된 개발 환경을 구축함.
|
||||
### 매 2026 주요 IDE 지형
|
||||
- **VS Code** (Microsoft): 최대 점유율, Copilot/Continue/Cline 등 확장.
|
||||
- **JetBrains** (IntelliJ/PyCharm/WebStorm): 강력한 정적 분석 + AI Assistant.
|
||||
- **Cursor** (Anysphere): VS Code fork, agent-first UX.
|
||||
- **Zed**: Rust 네이티브, 협업 + 멀티버퍼.
|
||||
- **Antigravity** (Google): agent-native, multi-pane terminal/browser/editor.
|
||||
- **Windsurf** (Codeium): cascading agent.
|
||||
- **Neovim + LSP**: 키보드 중심 + AI plugin (avante.nvim, copilot.lua).
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- Developer-Experience, ConnectAI, Static-[[Analysis]], Debugging
|
||||
- **Raw Source:** 10_Wiki/Topics/AI/Integrated-Development-Environment.md
|
||||
### 매 핵심 컴포넌트
|
||||
- **LSP (Language Server Protocol)**: 언어 기능 표준화.
|
||||
- **DAP (Debug Adapter Protocol)**: 디버거 표준화.
|
||||
- **MCP (Model Context Protocol)**: 2024-2025 표준, AI 에이전트의 도구/리소스 접근.
|
||||
- **Tree-sitter**: 증분 파싱 → 신택스 + 코드 네비.
|
||||
- **Extension API**: VS Code 가 사실상 표준.
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
### 매 AI 통합 레벨
|
||||
- L1 — autocomplete (Tab completion, Copilot inline).
|
||||
- L2 — chat sidebar (Q&A on selection).
|
||||
- L3 — multi-file edit (Cursor Composer, Copilot Workspace).
|
||||
- L4 — autonomous agent (Antigravity, Windsurf Cascade, Devin-like).
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
### 매 응용
|
||||
1. 폴리글랏 개발 (LSP 다중 언어).
|
||||
2. Remote / Codespaces 개발.
|
||||
3. Notebook + IDE 통합 (Jupyter, Polyglot Notebooks).
|
||||
4. Agentic refactoring (수십 파일 동시).
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
## 💻 패턴
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
|
||||
## 💻 코드 패턴 (Code Patterns)
|
||||
|
||||
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
|
||||
|
||||
```text
|
||||
# TODO
|
||||
### 1. VS Code extension 최소 골격
|
||||
```typescript
|
||||
// package.json: "main": "./out/extension.js"
|
||||
import * as vscode from 'vscode';
|
||||
export function activate(ctx: vscode.ExtensionContext) {
|
||||
ctx.subscriptions.push(
|
||||
vscode.commands.registerCommand('hello.run', () => {
|
||||
vscode.window.showInformationMessage('Hello from extension');
|
||||
})
|
||||
);
|
||||
}
|
||||
export function deactivate() {}
|
||||
```
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### 2. LSP 서버 등록 (Node)
|
||||
```typescript
|
||||
import { createConnection, TextDocuments, ProposedFeatures } from 'vscode-languageserver/node';
|
||||
import { TextDocument } from 'vscode-languageserver-textdocument';
|
||||
const conn = createConnection(ProposedFeatures.all);
|
||||
const docs = new TextDocuments(TextDocument);
|
||||
conn.onInitialize(() => ({ capabilities: { textDocumentSync: 1, hoverProvider: true } }));
|
||||
conn.onHover(({ textDocument, position }) => ({ contents: 'hello' }));
|
||||
docs.listen(conn); conn.listen();
|
||||
```
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### 3. .vscode/settings.json (project local)
|
||||
```json
|
||||
{
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": { "source.fixAll": "explicit" },
|
||||
"files.exclude": { "**/.git": true, "**/node_modules": true },
|
||||
"typescript.preferences.importModuleSpecifier": "relative",
|
||||
"github.copilot.editor.enableAutoCompletions": true
|
||||
}
|
||||
```
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### 4. .vscode/launch.json (DAP)
|
||||
```json
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Debug",
|
||||
"program": "${workspaceFolder}/src/index.ts",
|
||||
"preLaunchTask": "tsc: build"
|
||||
}]
|
||||
}
|
||||
```
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
### 5. JetBrains plugin (Kotlin) action
|
||||
```kotlin
|
||||
class HelloAction : AnAction() {
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
Messages.showMessageDialog(e.project, "Hello", "Plugin", null)
|
||||
}
|
||||
}
|
||||
// plugin.xml: <action id="Hello" class="...HelloAction" text="Hello"/>
|
||||
```
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
### 6. MCP server 등록 (VS Code / Cursor)
|
||||
```json
|
||||
// ~/.cursor/mcp.json or .vscode/mcp.json
|
||||
{
|
||||
"mcpServers": {
|
||||
"filesystem": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/me/proj"]
|
||||
},
|
||||
"github": {
|
||||
"command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"],
|
||||
"env": { "GITHUB_TOKEN": "..." }
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
### 7. .editorconfig (cross-IDE)
|
||||
```ini
|
||||
root = true
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
[*.go]
|
||||
indent_style = tab
|
||||
```
|
||||
|
||||
### 8. Devcontainer (VS Code Remote / Codespaces)
|
||||
```json
|
||||
{
|
||||
"name": "node-20",
|
||||
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
|
||||
"features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {} },
|
||||
"postCreateCommand": "npm install",
|
||||
"customizations": { "vscode": { "extensions": ["dbaeumer.vscode-eslint"] } }
|
||||
}
|
||||
```
|
||||
|
||||
### 9. Neovim + LSP + Copilot
|
||||
```lua
|
||||
require'lspconfig'.tsserver.setup{}
|
||||
require'copilot'.setup{ suggestion = { auto_trigger = true } }
|
||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition)
|
||||
```
|
||||
|
||||
### 10. AI agent rules (Cursor / Antigravity .rules)
|
||||
```markdown
|
||||
# rules.md
|
||||
- Always read the file before editing
|
||||
- Run `pnpm test` after non-trivial edits
|
||||
- Prefer absolute imports; ban `any` in TS
|
||||
- Commit messages: conventional commits
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| 폴리글랏 / 일반 | VS Code |
|
||||
| 강 typed (Java/Kotlin/Scala) | JetBrains IntelliJ |
|
||||
| Python ML 무거움 | PyCharm Pro 또는 VS Code + Pyright |
|
||||
| Agent 중심 | Cursor / Antigravity / Windsurf |
|
||||
| 협업 라이브 + 가벼움 | Zed |
|
||||
| 키보드 vim | Neovim + LSP + AI plugin |
|
||||
|
||||
**기본값**: 신규 프로젝트는 VS Code + Copilot/Cursor 가 최저 마찰. JVM 헤비는 IntelliJ.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Developer-Tools]] · [[Code-Editor]]
|
||||
- 변형: [[VS-Code]] · [[Cursor]] · [[Zed]] · [[Antigravity]]
|
||||
- 응용: [[Devcontainer]] · [[Codespaces]] · [[Pair-Programming-AI]]
|
||||
- Adjacent: [[LSP]] · [[DAP]] · [[MCP]] · [[Tree-sitter]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: extension scaffolding, .vscode 설정 생성, MCP server 설정, devcontainer 작성, plugin.xml/manifest 변환.
|
||||
**언제 X**: IDE 내부 인덱싱 동작 자체 디버깅 — 벤더 telemetry/log 직접 확인.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **모든 IDE 에 동일 설정 강요**: .editorconfig 로만 합의, IDE 별 settings 는 .gitignore.
|
||||
- **확장 폭주**: 50+ extension → cold start 30s+. 분기별 정리.
|
||||
- **AI 자동 적용 무검토**: Copilot/Cursor 의 multi-file edit 무리뷰 commit 금지.
|
||||
- **MCP token leak**: env 에 GITHUB_TOKEN 평문 — secret manager 또는 keychain 사용.
|
||||
- **devcontainer 미사용 onboarding**: 신입 setup 1주일 — devcontainer 로 5분.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (VS Code docs, JetBrains Platform docs, MCP spec 2025-06, Cursor docs 2026).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — 2026 IDE 지형 + LSP/DAP/MCP 통합 패턴 |
|
||||
|
||||
Reference in New Issue
Block a user