---
lang: ja-jp
breaks: true
---
# Visual Studio Code の設定 2021-05-13
> VSCodeのsettings.jsonを晒してみる
> https://qiita.com/WGG_SH/items/82f83ba91ca0d7f5c8b7
## Ctrlキーを押しながらマウスホイールを使用してエディタのフォントをズームする
`editor.mouseWheelZoom`

## settings.json
```shell=
%appdata%\Code\User
```
```json=
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"editor.suggestSelection": "first",
"editor.mouseWheelZoom": true,
"editor.renderControlCharacters": true,
//"editor.fontFamily": "Myrica M, monospace",
//"editor.fontFamily": "HackGen, monospace",
"editor.fontFamily": "cascadia code",
// フォントの合成
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.tokenColorCustomizations": {
"[Visual Studio Dark]": {
"comments": "#54ff10"
},
"[Visual Studio 2019 Dark]": {
"comments": "#54ff10"
},
"[Default Dark+]": {
"comments": "#54ff10"
},
},
"workbench.iconTheme": "vscode-icons",
"workbench.colorCustomizations": {
"editor.selectionHighlightBorder": "#c0e637",
"editor.findMatchHighlightBorder": "#ff0000",
// 入力候補のポップアップ
"editorSuggestWidget.selectedBackground": "#ff3ce579",
"editorCursor.foreground": "#ffffff",
} ,
"editor.minimap.showSlider": "always",
"editor.minimap.size": "fill",
"editor.minimap.renderCharacters": false, // ミニマップを簡略化
"editor.renderIndentGuides": true, // インデントのガイドラインを表示
"editor.codeLens": true,
"editor.renderLineHighlight": "all", // 選択中の行を強調する
"editor.roundedSelection": true, // 選択範囲の角を丸める
"editor.letterSpacing": -1, // 文字の間隔を詰める
"editor.lineHeight": 16, // 文字の間隔を詰める
"editor.scrollBeyondLastLine": true, // 最終行よりも下へのスクロールを許可
"editor.cursorStyle": "line", // カーソルの形状
"editor.cursorBlinking": "smooth", // カーソルの表示形式
"editor.cursorWidth": 3, // カーソル幅
"editor.minimap.enabled": true, // ミニマップの表示
//"editor.minimap.maxColumn": 40, // ミニマップの幅
"editor.detectIndentation": false,
"editor.renderWhitespace": "all",
"terminal.integrated.fontSize": 20,
"terminal.integrated.scrollback": 50000,
"terminal.integrated.copyOnSelection": true,
//"terminal.integrated.fontFamily": "cascadia code",
//"terminal.integrated.fontFamily": "Myrica M, monospace",
"terminal.integrated.fontFamily": "HackGen, monospace",
"files.autoGuessEncoding": true,
"emmet.variables": {
"lang": "ja",
"charset": "UTF-8"
},
"json.maxItemsComputed": 10000, // jsonが解析される最大項目数。
"terminal.integrated.fontSize": 20,
"terminal.integrated.scrollback": 50000,
"terminal.integrated.copyOnSelection": true,
"terminal.integrated.fontFamily": "cascadia code",
```
## keybindings.json
```json=
// 既定値を上書きするには、このファイル内にキー バインドを挿入しますauto[]
[
{
"key": "ctrl+w",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "ctrl+w",
"command": "-workbench.action.terminal.killEditor",
"when": "terminalEditorFocus && terminalFocus && terminalHasBeenCreated && resourceScheme == 'vscode-terminal' || terminalEditorFocus && terminalFocus && terminalProcessSupported && resourceScheme == 'vscode-terminal'"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeGroup",
"when": "activeEditorGroupEmpty && multipleEditorGroups"
},
{
"key": "ctrl+w",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "shift+alt+oem_period",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
}
]
```
###### tags: `Visual Studio Code`