Visual Studio Code — The Industry-Standard Code Editor
Visual Studio Code is a free, open-source code editor built by Microsoft on Electron. Combines lightweight startup with IDE features: IntelliSense, debugging, Git integration, extensions marketplace with 60,000+ plugins. The most popular code editor in the world.
先审查再安装
这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。
npx -y tokrepo@latest install 1b748015-35fe-11f1-9bc6-00163e2b0d79 --target codex先 dry-run,确认写入项后再运行此命令。
What it is
Visual Studio Code is a free, open-source code editor built by Microsoft on the Electron framework. It combines the speed of a text editor with IDE features: IntelliSense code completion, integrated debugging, built-in Git support, and an extensions marketplace with 60,000+ plugins.
VS Code serves every type of developer. Frontend, backend, data science, DevOps, and embedded developers all use it. Its language-agnostic core and extension model mean it adapts to any tech stack.
How it saves time or tokens
VS Code's extension ecosystem means you do not need separate tools for linting, formatting, testing, or database management. Everything runs inside the editor. IntelliSense provides context-aware completions that reduce typing and lookup time.
Remote development extensions (SSH, Containers, WSL) let you edit code on remote machines or inside containers as if they were local. This eliminates file sync tools and SSH+vim workflows for remote development.
How to use
- Install VS Code:
# macOS
brew install --cask visual-studio-code
# Linux (Debian/Ubuntu)
sudo apt install code
# Or download from https://code.visualstudio.com
- Open a project folder:
code /path/to/your/project
- Install extensions from the marketplace (Ctrl+Shift+X) for your language and framework.
Example
Configuring VS Code for a TypeScript project with recommended extensions:
// .vscode/extensions.json
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"ms-vscode.vscode-typescript-next"
]
}
// .vscode/settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib"
}
Team members who open this project get prompted to install the recommended extensions automatically.
Related on TokRepo
- AI tools for coding -- AI-powered code editors and development tools
- Prompt library -- Prompts and configurations for AI coding assistants
Common pitfalls
- Installing too many extensions. Each extension adds startup time and memory usage. Audit your extensions quarterly and disable unused ones. Use workspace-specific extension recommendations instead of global installs.
- Ignoring workspace settings. Project-specific settings in
.vscode/settings.jsonoverride user settings and ensure consistent behavior across the team. Commit these to your repository. - Not using keyboard shortcuts. VS Code's productivity scales with shortcut usage. Learn Ctrl+P (quick open), Ctrl+Shift+P (command palette), and Ctrl+` (terminal) as a minimum.
常见问题
The source code is open source under the MIT license (the 'Code - OSS' project). The downloadable VS Code binary from Microsoft includes telemetry and proprietary features. VSCodium is a community build without Microsoft telemetry.
VS Code is lighter, faster to start, and free. JetBrains IDEs (IntelliJ, WebStorm, PyCharm) provide deeper language-specific features like advanced refactoring, database tools, and framework-specific support. VS Code catches up via extensions but may require more configuration.
Yes. With the right extensions, VS Code handles large codebases effectively. Language servers provide IDE-grade features (go-to-definition, find-references, rename-symbol). The built-in terminal, debugger, and Git integration cover most IDE use cases.
Remote Development extensions let you connect to remote machines via SSH, develop inside Docker containers, or use WSL on Windows. The editor runs locally, but the language server, terminal, and file system operate on the remote target.
Enable Settings Sync via the gear icon in the bottom-left corner. It syncs settings, keybindings, extensions, and snippets across machines using your GitHub or Microsoft account. This eliminates manual setup when switching computers.
引用来源 (3)
- VS Code GitHub— VS Code is the most popular code editor with 60,000+ extensions
- VS Code Remote Docs— Remote Development extensions for SSH, containers, and WSL
- VS Code IntelliSense Docs— IntelliSense and Language Server Protocol
讨论
相关资产
Zed — High-Performance Code Editor with AI Built-In
GPU-accelerated code editor written in Rust with native AI assistant, multi-player editing, and sub-millisecond latency. Supports Claude, GPT-4, and local models. 55,000+ GitHub stars.
Monaco Editor — Browser-Based Code Editor That Powers VS Code
The code editor component extracted from Visual Studio Code, offering IntelliSense, syntax highlighting, and diff editing directly in the browser.
Notepad++ — Powerful Free Source Code Editor for Windows
Notepad++ is a free, open-source text and source code editor for Windows. Built on the Scintilla editing component, it supports syntax highlighting for over 80 languages, macro recording, and a rich plugin ecosystem.
Beekeeper Studio — Modern SQL Editor and Database Manager
Beekeeper Studio is a free, open-source SQL editor and database management GUI. It connects to MySQL, PostgreSQL, SQLite, SQL Server, CockroachDB, and more with a clean modern interface.