Visual Studio Code 插件推荐
软件安装
插件站
ext install extensionID
vscode:extension/extensionID
官方 VS Code CLI 提供的 .vsix 导出
code --install-extension ms-python.python
code --list-extensions
code --export-extensions > extensions.txt
code --uninstall-extension ms-python.python
code --install-extension ms-python.python --force --install-from-vsix path/to/file.vsix
VSIX 文件安装方法
# 安装 .vsix 扩展到当前 VS Code 环境
code --install-extension my-extension.vsix
# 如果你在容器或服务器中使用 code-server,请使用:
code-server --install-extension my-extension.vsix
https://github.com/un4gt/vscer
vscer 扩展下载命令行工具
vscer -i <EXTID>
常用开发
必选
ultram4rine.vscode-choosealicense
codezombiech.gitignore
EditorConfig.EditorConfig
HashiCorp.HCL
redhat.vscode-yaml
tamasfe.even-better-toml
42Crunch.vscode-openapi
humao.rest-client
rangav.vscode-thunder-client
usernamehw.errorlens
vstirbu.vscode-mermaid-preview
formulahendry.code-runner
fill-labs.dependi
nefrob.vscode-just-syntax
BlueGlassBlock.better-json5
Git
felipecaputo.git-project-manager
donjayamanne.githistory
可选
ms-vscode.hexeditor
mechatroner.rainbow-csv
wangzy.sneak-mark
karunamurti.tera
zxh404.vscode-proto3
kangping.protobuf
Vibe Coding
Augment.vscode-augment
Codeium.codeium
google.geminicodeassist
anthropic.claude-code
TabNine.tabnine-vscode
Alibaba-Cloud.tongyi-lingma
Tencent-Cloud.coding-copilot
BaiduComate.comate
MarsCode.marscode-extension
AMiner.codegeex
国产编程助手这些个废物,不推荐使用。以下我说说这些个国产编程助手的各种问题。
- 百度的 Comate:
- Zulu 修改网页内容后,不知道在哪里“采纳”,只有“拒绝”可以选。
- 输入框不支持输入中文(Ubuntu + fcitx)
- 阿里的通义千问:
Docker / CI
ms-azuretools.vscode-containers
ms-azuretools.vscode-docker
docker.docker
github.vscode-github-actions
exiasr.hadolint
Shell
EXTS="timonwong.shellcheck Remisa.shellman shakram02.bash-beautify foxundermoon.shell-format"
Python
EXTS="ms-python.isort ms-python.autopep8 ms-python.python ms-python.vscode-pylance ms-python.vscode-python-envs ms-python.debugpy charliermarsh.ruff"
Go
EXTS="golang.go"
# 安装完后,手动执行 `Ctrl + Shift + P`,安装一系列插件
Go: Install/Update Tools
Ctrl+Shift+P
→ Preferences: Open Settings (JSON)
{
"go.useLanguageServer": true,
"go.formatTool": "goimports",
"go.lintTool": "golangci-lint",
"go.lintOnSave": "package",
"go.buildOnSave": "package",
"go.testOnSave": true,
"go.toolsManagement.autoUpdate": true
}
Rust
EXTS="rust-lang.rust-analyzer"
# 代码格式化和静态检查
rustup component add rustfmt
rustup component add clippy
# LLDB/GDB 调试器
sudo apt install lldb
JavaScript / TypeScript / CSS / HTML
EXTS="Angular.ng-template msjsdiag.vscode-react-native dsznajder.es7-react-js-snippets astro-build.astro-vscode octref.vetur stylelint.vscode-stylelint mgmcdermott.vscode-language-babel denoland.vscode-deno"
安装
# bash
for ext in $EXTS; do vscer -i "$ext"; done
# zsh
for ext in ${(z)EXTS}; do vscer -i "$ext"; done