LoginSignup
8
8

More than 3 years have passed since last update.

Visual Studio Code 拡張機能を一括インストール

Last updated at Posted at 2019-05-25

概要

Visual Studio Codeの拡張機能をコマンドで一括インストール。

スクリプト

PowerShellに以下をコピペして実行。
■ここから拡張から下は各自必要なものを書く。

# カレントにパスが通っていない場合は通す
if (-not $env:path.Split(';').Contains('.\')) {
    $env:path = $env:path + ';.\'
}

# binへのパスが未登録ならカレントディレクトリ変更
$binPath = Join-Path ([Environment]::GetFolderPath('LocalApplicationData')) 'Programs\Microsoft VS Code\bin'
if ($env:path.IndexOf($binpath, [System.StringComparison]::OrdinalIgnoreCase) -eq -1) {
    cd $binPath
}

# ■ここから拡張

# 日本語パック
code --install-extension MS-CEINTL.vscode-language-pack-ja --force

# コーディング支援
code --install-extension visualstudioexptteam.vscodeintellicode --force

# C#
code --install-extension ms-vscode.csharp --force

# PowerShell
code --install-extension ms-vscode.powershell --force

# ブックマーク
code --install-extension alefragnani.Bookmarks --force
code --install-extension alefragnani.numbered-bookmarks --force

# 括弧強調
code --install-extension CoenraadS.bracket-pair-colorizer-2 --force

# Git
code --install-extension eamodio.gitlens --force
code --install-extension donjayamanne.githistory --force

# Markdown
code --install-extension yzhang.markdown-all-in-one --force
code --install-extension DavidAnson.vscode-markdownlint --force

# HTML
code --install-extension abusaidm.html-snippets --force
code --install-extension mkaufman.HTMLHint --force
code --install-extension Zignd.html-css-class-completion --force

# XML
code --install-extension DotJoshJohnson.xml --force

# TypeScript
code --install-extension eg2.tslint --force

# lint
code --install-extension taichi.vscode-textlint --force
code --install-extension ics.japanese-proofreading --force

# CSVカラー表示
code --install-extension mechatroner.rainbow-csv --force

code --install-extension ●●●●●● --force の●●●●●●部分は以下の例を参照。

vscode_ext.png

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8