facebook twitter hatena line email

「VisualStudioCode/設定」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(プロジェクト内の設定ファイル)
 
(同じ利用者による、間の17版が非表示)
行1: 行1:
==macのユーザ設定ファイル==
+
[[VisualStudioCode/設定/基本]]
vi ~/Library/Application\ Support/Code/User/settings.json
+
  
例:
+
[[VisualStudioCode/設定/omnisharp]]
<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>
+
  
==プロジェクト内の設定ファイル==
+
[[VisualStudioCode/設定/editorconfig]]
vi .vscode/settings.json
+
+
<pre>
+
{
+
    "files.exclude": {
+
        "**/.DS_Store": true,
+
        "**/.git": true,
+
        "**/.vs": true,
+
        "**/.gitmodules": true,
+
        "**/.vsconfig": true,
+
        "**/*.booproj": true,
+
        "**/*.pidb": true,
+
        "**/*.suo": true,
+
        "**/*.user": true,
+
        "**/*.userprefs": true,
+
        "**/*.unityproj": true,
+
        "**/*.dll": true,
+
        "**/*.exe": true,
+
        "**/*.pdf": true,
+
        "**/*.mid": true,
+
        "**/*.midi": true,
+
        "**/*.wav": true,
+
        "**/*.gif": true,
+
        "**/*.ico": true,
+
        "**/*.jpg": true,
+
        "**/*.jpeg": true,
+
        "**/*.png": true,
+
        "**/*.psd": true,
+
        "**/*.tga": true,
+
        "**/*.tif": true,
+
        "**/*.tiff": true,
+
        "**/*.3ds": true,
+
        "**/*.3DS": true,
+
        "**/*.fbx": true,
+
        "**/*.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"
+
}
+
</pre>
+
  
==settings.json記述方法==
+
[[VisualStudioCode/設定/csharpフォーマット一括更新]]
settings.json
+
 
<pre>
+
[[VisualStudioCode/設定/拡張機能]] [dir]
{
+
  "editor.formatOnSave": true, // 保存時に自動フォーマット
+
  "editor.formatOnPaste": true, // 貼り付け時に自動フォーマット
+
  "editor.formatOnType": true // 入力時に自動フォーマット
+
}
+
</pre>
+

2025年3月2日 (日) 02:29時点における最新版

VisualStudioCode/設定/基本

VisualStudioCode/設定/omnisharp

VisualStudioCode/設定/editorconfig

VisualStudioCode/設定/csharpフォーマット一括更新

VisualStudioCode/設定/拡張機能 [dir]