コンテンツにスキップ

設定メモ

最終更新日: 2021-04-01
  • 2021/04/01 時点の設定
    • 必要に応じて workspace の設定で上書きする運用

settings.json

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
{
    "terminal.integrated.shell.windows": "C:\\msys64\\msys2_shell.cmd",
    "terminal.integrated.shellArgs.windows": [
        "-defterm",
        "-here",
        "-use-full-path",
        "-no-start",
        "-mingw64"
    ],
    "terminal.integrated.shell.linux": "/usr/bin/zsh",
    "terminal.integrated.shellArgs.linux": ["-l"],
    "terminal.integrated.allowChords": false,
    "remote.SSH.remotePlatform": {
        "dev.lycolia.info": "linux"
    },
    "workbench.startupEditor": "newUntitledFile",
    "workbench.iconTheme": "vscode-icons",
    "workbench.editor.decorations.badges": false,
    "workbench.editor.decorations.colors": false,
    "files.eol": "\n",
    "files.insertFinalNewline": true,
    "git.autofetch": true,
    "git.autoStash": true,
    "git.suggestSmartCommit": false,
    "diffEditor.ignoreTrimWhitespace": true,
    "explorer.confirmDragAndDrop": false,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "[typescript]": {
        "editor.tabSize": 2
    },
    "[json]": {
        "editor.tabSize": 2
    },
    "[javascript]": {
        "editor.tabSize": 2
    },
    "[vue]": {
        "editor.tabSize": 2
    },
    "[html]": {
        "editor.tabSize": 2,
        "editor.formatOnSave": true
    },
    "[css]": {
        "editor.tabSize": 2,
        "editor.formatOnSave": true
    },
    "[scss]": {
        "editor.tabSize": 2,
        "editor.formatOnSave": true
    },
    "[python]": {
        "editor.tabSize": 4,
        "editor.formatOnSave": true
    },
    "[markdown]": {
        "editor.tabSize": 4,
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "editor.formatOnSave": true
    },
    "python.linting.flake8Args": [
        "--ignore=E722" // disable only except
    ],
    "python.formatting.autopep8Args": [
        "--max-line-length=120",
        "--ignore",
        "E402" // disable sorting `import`
    ],
    "python.linting.pylintPath": "flake8",
    "php.executablePath": "php",
    "php.validate.run": "onSave",
    "yaml.format.singleQuote": true,
    "javascript.preferences.quoteStyle": "single",
    "javascript.suggest.paths": true,
    "javascript.preferences.importModuleSpecifier": "relative",
    "javascript.updateImportsOnFileMove.enabled": "always",
    "typescript.suggest.paths": true,
    "typescript.preferences.importModuleSpecifier": "relative",
    "typescript.updateImportsOnFileMove.enabled": "always",
    "typescript.preferences.quoteStyle": "single",
    "typescript.validate.enable": true,
    "eslint.alwaysShowStatus": true,
    "prettier.htmlWhitespaceSensitivity": "strict",
    "prettier.singleQuote": true,
    "prettier.tabWidth": 4,
    "prettier.useTabs": false,
    "prettier.bracketSpacing": true,
    "vsicons.dontShowNewVersionMessage": true,
    "pasteImage.path": "${currentFileDir}/${currentFileNameWithoutExt}.assets",
    "todo-tree.general.enableFileWatcher": true,
    "todo-tree.filtering.excludeGlobs": ["**/node_modules/**/*"],
    "todo-tree.highlights.customHighlight": {
        "TODO": {
            "foreground": "#f8ff96",
            "type": "text-and-comment"
        },
        "FIXME": {
            "foreground": "#ff9696",
            "type": "text-and-comment"
        }
    },
    "todo-tree.general.tags": ["TODO", "FIXME"],
    "todo-tree.regex.regex": "(//|#|<!--|/\\*|^\\s*\\*)\\s*($TAGS)"
}

keybindings.json

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
[
    {
        "key": "alt+down",
        "command": "workbench.action.compareEditor.nextChange",
        "when": "textCompareEditorVisible"
    },
    {
        "key": "alt+up",
        "command": "workbench.action.compareEditor.previousChange",
        "when": "textCompareEditorVisible"
    }
]

拡張機能

  • code --list-extensions で吐いたやつ
    • code --install-extension EXT-NAME でインストールできる
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
42Crunch.vscode-openapi
abusaidm.html-snippets
dbaeumer.vscode-eslint
eamodio.gitlens
esbenp.prettier-vscode
felixfbecker.php-debug
felixfbecker.php-intellisense
Gruntfuggly.todo-tree
jebbs.plantuml
MS-CEINTL.vscode-language-pack-ja
ms-edgedevtools.vscode-edge-devtools
ms-python.python
ms-toolsai.jupyter
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode-remote.remote-wsl
msjsdiag.debugger-for-chrome
mushan.vscode-paste-image
Prisma.prisma
redhat.vscode-yaml
samuelcolvin.jinjahtml
shd101wyy.markdown-preview-enhanced
vscode-icons-team.vscode-icons
yzhang.markdown-all-in-one