extensions.jsonをコマンドパレットから作成する – 【VS Code】

extensions.jsonをコマンドパレットから作成する – 【VS Code】

Ctrl + Shift + pでコマンドパレットを開き、「Configure Re」とタイプします。

Configure Recommended Extensionsを選択すると、.vscode/extensions.jsonが作成されます。

extensions.json

{
	// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
	// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

	// List of extensions which should be recommended for users of this workspace.
	"recommendations": [
		
	],
	// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
	"unwantedRecommendations": [
		
	]
}

recommendationsに、拡張機能の識別子(Identifier)を指定すればOKです。

複数ある場合はカンマ区切りで指定してください。

{
	// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
	// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

	// List of extensions which should be recommended for users of this workspace.
	"recommendations": [
		"dbaeumer.vscode-eslint",
		"esbenp.prettier-vscode"
	],
	// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
	"unwantedRecommendations": [
		
	]
}

上記はeslintとPrettierを指定した例です。

株式会社CONFRAGE ITソリューション事業部をもっと見る

今すぐ購読し、続きを読んで、すべてのアーカイブにアクセスしましょう。

続きを読む

タイトルとURLをコピーしました