跳到主要内容

Claude Code

定义

Claude Code is Anthropic’s AI 驱动的编码助手. It brings Claude into the development workflow via terminal, IDE (VS Code, JetBrains), web, iOS, and Slack, with inline editing, diffs, and command-line tools.

它是 similar to Cursor and GitHub Copilot in offering code generation and editing with LLM context; differentiation includes native terminal and multi-environment support (desktop, browser, IDE). Useful for agent-like workflows: explore codebases, apply changes, and get answers from the terminal or editor.

工作原理

你可以从终端(CLI)、IDE(VS Code 或 JetBrains 扩展)或浏览器r/iOS app. The model (Claude) has access to your project, open files, and terminal; you ask in natural language for edits, explanations, or refactors. Terminal: run commands to explore repos, generate code, or apply changes. IDE: use inline edits and visual diffs, then accept or reject. Context is managed by the tool (file selection, project scope). A Claude subscription (Pro, Teams, Enterprise) or access via Amazon Bedrock or Vertex AI is required.

应用场景

Claude Code fits developers who want Claude in the terminal and IDE with a single, multi-environment tool.

  • Exploring codebases and answering questions from the command line
  • In-IDE code generation, refactoring, and edits with visual diffs
  • Cross-platform use (terminal, VS Code, JetBrains, web, mobile)

外部文档

另请参阅