「VisualStudioCode/設定」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「==macのユーザ設定ファイル== vi ~/Library/Application\ Support/Code/User/settings.json ==プロジェクト内の設定ファイル== vi .vscode/settings.json...」) |
(→プロジェクト内の設定ファイル) |
||
行4: | 行4: | ||
==プロジェクト内の設定ファイル== | ==プロジェクト内の設定ファイル== | ||
vi .vscode/settings.json | vi .vscode/settings.json | ||
+ | 例 | ||
+ | <pre> | ||
+ | { | ||
+ | "workbench.colorTheme": "Default Light+", | ||
+ | "security.workspace.trust.untrustedFiles": "open", | ||
+ | "workbench.startupEditor": "none", | ||
+ | "workbench.activityBar.location": "hidden", | ||
+ | "workbench.editor.enablePreview": false, | ||
+ | "chat.editing.alwaysSaveWithGeneratedChanges": true, | ||
+ | "php-cs-fixer.lastDownload": 1740621524439, | ||
+ | "dotnet.codeLens.enableReferencesCodeLens": false | ||
+ | } | ||
+ | </pre> | ||
==settings.json記述方法== | ==settings.json記述方法== |
2025年3月1日 (土) 18:56時点における版
macのユーザ設定ファイル
vi ~/Library/Application\ Support/Code/User/settings.json
プロジェクト内の設定ファイル
vi .vscode/settings.json
例
{ "workbench.colorTheme": "Default Light+", "security.workspace.trust.untrustedFiles": "open", "workbench.startupEditor": "none", "workbench.activityBar.location": "hidden", "workbench.editor.enablePreview": false, "chat.editing.alwaysSaveWithGeneratedChanges": true, "php-cs-fixer.lastDownload": 1740621524439, "dotnet.codeLens.enableReferencesCodeLens": false }
settings.json記述方法
settings.json
{ "editor.formatOnSave": true, // 保存時に自動フォーマット "editor.formatOnPaste": true, // 貼り付け時に自動フォーマット "editor.formatOnType": true // 入力時に自動フォーマット }