「VisualStudioCode/設定」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→プロジェクト内の設定ファイル) |
(→macのユーザ設定ファイル) |
||
| 行1: | 行1: | ||
==macのユーザ設定ファイル== | ==macのユーザ設定ファイル== | ||
vi ~/Library/Application\ Support/Code/User/settings.json | vi ~/Library/Application\ Support/Code/User/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 | ||
| + | } | ||
==プロジェクト内の設定ファイル== | ==プロジェクト内の設定ファイル== | ||
2025年3月1日 (土) 19:49時点における版
macのユーザ設定ファイル
vi ~/Library/Application\ Support/Code/User/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
}
プロジェクト内の設定ファイル
vi .vscode/settings.json
例
"**/*.FBX": true,
"**/*.lxo": true,
"**/*.LXO": true,
"**/*.ma": true,
"**/*.MA": true,
"**/*.obj": true,
"**/*.OBJ": true,
"**/*.asset": true,
"**/*.cubemap": true,
"**/*.flare": true,
"**/*.mat": true,
"**/*.meta": true,
"**/*.prefab": true,
"**/*.unity": true,
"build/": true,
"Build/": true,
"Library/": true,
"library/": true,
"obj/": true,
"Obj/": true,
"Logs/": true,
"logs/": true,
"ProjectSettings/": true,
"UserSettings/": true,
"temp/": true,
"Temp/": true
},
"dotnet.defaultSolution": "flickeat.sln"
}
settings.json記述方法
settings.json
{
"editor.formatOnSave": true, // 保存時に自動フォーマット
"editor.formatOnPaste": true, // 貼り付け時に自動フォーマット
"editor.formatOnType": true // 入力時に自動フォーマット
}
