# Init vscode

> Init vscode is an open-source agent skill for developer tools. Sets up and migrates shared VS Code workspace settings and extension recommendations. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ruan-cat/monorepo/tree/main/ai-plugins/common-tools/skills/init-vscode
- **Repository:** https://github.com/ruan-cat/monorepo
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** init-vscode
- **Collection:** https://github.com/ruan-cat/monorepo
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill creates or merges a project's .vscode/extensions.json and .vscode/settings.json, keeping comments in the JSONC files intact. It tracks known extension replacements, such as a deprecated todo extension being swapped for its successor, and treats them as tracked migrations rather than plain list merges. User-level VS Code settings are only touched after explicit approval and with a backup.

For large monorepos it synchronizes file tree hiding, watcher exclusions and search exclusions for dependency, build, cache and sourcemap folders, caps the search index file size, and tunes TypeScript server memory and watch options. It also forces line endings to LF and adds a Prettier override so JSONC config files format correctly.

The workflow expects a project root with write access, and it validates the resulting JSONC with Prettier. Runtime checks inside the editor are reported as pending unless the user confirms them in the GUI.

## When your agent uses it

> 初始化或更新 VSCode 配置文件（.vscode/extensions.json 和 .vscode/settings.json）， 治理扩展推荐的生命周期与已知替代关系，并在 JSONC 安全迁移、工作区/用户级 scope、 preflight/postflight 和可回滚验收之间建立明确边界；同时把 `files.eol` 收敛为 `"\n"`， 配合 `.gitattributes`、`.editorconfig`、Prettier 解决 Windows 上的 CRLF/LF 漂移与 git 幽灵修改问题， 并补齐大型 monorepo 的 VSCode 启动慢、文件监听、搜索索引与 TypeScript Server 性能优化默认值。 只要用户提到初始化 vscode、编辑器配置、工作区设置、扩展替换/弃用迁移、行尾统一、EOL、CRLF/LF、 幽灵修改、团队规范、VSCode 启动慢、大仓库性能、文件监听降噪、搜索索引优化，都应该使用本技能。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/init-vscode)
- [License: MIT](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/init-vscode)

## Features

- **Workspace extension recommendations:** Creates or merges recommended and unwanted extension lists without dropping unrelated entries.
- **Extension replacement migration:** Swaps a known deprecated extension for its successor with a recorded rollback path.
- **Monorepo performance defaults:** Synchronizes file tree, watcher and search exclusions for dependency and build folders.
- **TypeScript server tuning:** Sets server memory, watch options and a project-local TypeScript SDK path.
- **LF line ending enforcement:** Forces files.eol to LF to reduce CRLF drift and phantom git changes.
- **Prettier JSONC compatibility:** Adds a precise Prettier override so comment-bearing config files format without errors.

## Good for

- Set up a shared VS Code config for a new TypeScript project
- Replace a deprecated VS Code extension recommendation in a repo
- Stop line ending changes from showing as modified files on Windows
- Speed up VS Code in a large pnpm or Turborepo monorepo
- Reduce file watcher and search indexing load in a big repository

## Install

### Claude Code

This skill ships in the `common-tools` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ruan-cat/monorepo
/plugin install common-tools@ruan-cat-tools
```

Or copy only this skill to `~/.claude/skills/init-vscode`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/init-vscode &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-vscode" ~/.claude/skills/init-vscode &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/init-vscode` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/init-vscode` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/init-vscode &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-vscode" ~/.agents/skills/init-vscode &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/init-vscode` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/init-vscode` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/init-vscode &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-vscode" ~/.cursor/skills/init-vscode &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/init-vscode` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/common-tools/skills/init-vscode
```

Or copy the folder to `~/.gemini/skills/init-vscode` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/init-vscode`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/init-vscode &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-vscode" ~/.copilot/skills/init-vscode &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/init-vscode` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ruan-cat/monorepo.git
```

Then copy `monorepo/ai-plugins/common-tools/skills/init-vscode` into your agent's skills folder as `init-vscode`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Init vscode change my global VS Code User Settings?

No. User Settings and keybindings are only changed with explicit authorization, a backup and a stated scope. The default is to detect and report.

### Will Init vscode remove my existing extension recommendations?

Only for a registered replacement mapping. Other recommendations are kept, and unknown extensions are never removed by guesswork.

### Does unwantedRecommendations uninstall an extension?

No. It only expresses that the workspace does not want to recommend the extension; it does not uninstall or disable anything.

### Are the JSON config files still valid JSON?

The extensions.json file is kept as JSONC so comments are preserved, and the skill checks it with a JSONC-aware Prettier parse.

### How do I install Init vscode in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/init-vscode to use it in all your projects, or to .claude/skills/init-vscode in one project. Or install the common-tools plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install common-tools@ruan-cat-tools.

### Does Init vscode run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Init vscode?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Init vscode?

The closest alternatives to Init vscode are Init tsconfig, Factory reset vscode fork IDE, Vscode ext localization, Package linter and Vscode ext commands.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Init tsconfig](https://ai-powered.com/skills/init-tsconfig): Init tsconfig is an open-source agent skill for developer tools.
- [Factory reset vscode fork IDE](https://ai-powered.com/skills/factory-reset-vscode-fork-ide): Factory reset vscode fork IDE is an open-source agent skill for developer tools.
- [Vscode ext localization](https://ai-powered.com/skills/vscode-ext-localization): Vscode ext localization is an open-source agent skill for developer tools.
- [Package linter](https://ai-powered.com/skills/package-linter): Package linter is an open-source agent skill for developer tools.
- [Vscode ext commands](https://ai-powered.com/skills/vscode-ext-commands): Vscode ext commands is an open-source agent skill for developer tools.
- [Azure devops CLI](https://ai-powered.com/skills/azure-devops-cli): Azure devops CLI is an open-source agent skill for cloud and infrastructure.
- [Intlayer dev tools](https://ai-powered.com/skills/intlayer-dev-tools): Intlayer dev tools is an open-source agent skill for developer tools.
- [Init prettier git hooks](https://ai-powered.com/skills/init-prettier-git-hooks): Init prettier git hooks is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/init-vscode
