Open4

VS Code設定メモ

聖永宗玄聖永宗玄
.vscode/extensions.json
{
    "recommendations": [
        "alefragnani.bookmarks",
        "animallogic.vscode-usda-syntax",
        "ardonplay.jetbrains-idea-product-icon-theme",
        "arjun.swagger-viewer",
        "bmalehorn.vscode-fish",
        "bradlc.vscode-tailwindcss",
        "catppuccin.catppuccin-vsc",
        "charliermarsh.ruff",
        "chaseadamsio.vscode-theme-neon-night",
        "christian-kohler.path-intellisense",
        "clinyong.vscode-css-modules",
        "cocopon.iceberg-theme",
        "davidanson.vscode-markdownlint",
        "dbaeumer.vscode-eslint",
        "donjayamanne.githistory",
        "drewxs.tokyo-night-dark",
        "eamodio.gitlens",
        "editorconfig.editorconfig",
        "esbenp.prettier-vscode",
        "firefox-devtools.vscode-firefox-debug",
        "formulahendry.auto-rename-tag",
        "github.copilot",
        "github.copilot-chat",
        "github.vscode-github-actions",
        "github.vscode-pull-request-github",
        "irongeek.vscode-env",
        "johnnymorganz.stylua",
        "kisstkondoros.vscode-codemetrics",
        "lokalise.i18n-ally",
        "mechatroner.rainbow-csv",
        "mhutchie.git-graph",
        "ms-azuretools.vscode-docker",
        "ms-ceintl.vscode-language-pack-ja",
        "ms-python.black-formatter",
        "ms-python.debugpy",
        "ms-python.flake8",
        "ms-python.python",
        "ms-python.vscode-pylance",
        "ms-vscode-remote.remote-containers",
        "ms-vscode-remote.remote-ssh",
        "ms-vscode-remote.remote-ssh-edit",
        "ms-vscode-remote.remote-wsl",
        "ms-vscode-remote.vscode-remote-extensionpack",
        "ms-vscode.cmake-tools",
        "ms-vscode.cpptools",
        "ms-vscode.cpptools-extension-pack",
        "ms-vscode.cpptools-themes",
        "ms-vscode.remote-explorer",
        "ms-vscode.remote-server",
        "negokaz.zenn-editor",
        "nwolverson.ide-purescript",
        "nwolverson.language-purescript",
        "oderwat.indent-rainbow",
        "redhat.vscode-yaml",
        "soerenuhrbach.vscode-deepl",
        "streetsidesoftware.code-spell-checker",
        "stringham.copy-with-imports",
        "styled-components.vscode-styled-components",
        "stylelint.vscode-stylelint",
        "sumneko.lua",
        "taichi.vscode-textlint",
        "tamasfe.even-better-toml",
        "thenuprojectcontributors.vscode-nushell-lang",
        "tomsaunders.vscode-workspace-explorer",
        "twxs.cmake",
        "vscode-icons-team.vscode-icons",
        "winkchen.parser-jsdoc",
        "wmaurer.change-case",
        "xadillax.viml",
        "zenn.zenn-preview",
        "zxh404.vscode-proto3"
    ]
}


聖永宗玄聖永宗玄
global.code-snippets
{
	// Place your GLOBAL snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and 
	// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope 
	// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is 
	// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: 
	// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. 
	// Placeholders with the same ids are connected.
	// Example:
	// "Print to console": {
	// 	"scope": "javascript,typescript",
	// 	"prefix": "log",
	// 	"body": [
	// 		"console.log('$1');",
	// 		"$2"
	// 	],
	// 	"description": "Log output to console"
	// }
	"lg": {
    "prefix": "lg",
    "body": [
      "/* eslint-disable no-console */",
      "console.log(`$RELATIVE_FILEPATH $TM_CURRENT_LINE $CLIPBOARD: \\${$CLIPBOARD}`);"
    ],
    "description": ""
  },
  "lg": {
    "prefix": "lg",
    "body": [
      "/* eslint-disable no-console */",
      "console.log(`$RELATIVE_FILEPATH $TM_CURRENT_LINE $CLIPBOARD: \\${$CLIPBOARD}`);"
    ],
    "description": ""
  },
  "lg2": {
    "prefix": "lg2",
    "body": [
      "/* eslint-disable no-console */",
      "console.log(`$RELATIVE_FILEPATH $TM_CURRENT_LINE $CLIPBOARD: \\${JSON.stringify($CLIPBOARD, undefined, 2)}`);"
    ],
    "description": ""
  },
  "lg2": {
    "prefix": "lg2",
    "body": [
      "/* eslint-disable no-console */",
      "console.log(`$RELATIVE_FILEPATH $TM_CURRENT_LINE $CLIPBOARD: \\${JSON.stringify($CLIPBOARD, undefined, 2)}`);"
    ],
    "description": ""
  },
  "定数": {
    "prefix": "c",
    "body": ["const $CLIPBOARD = $CLIPBOARD;"],
    "description": "constant"
  },
  "三項演算子": {
    "prefix": "sa",
    "body": ["const hoge = isSticky", "\t? styles", "\t: styles;"],
    "description": "三項演算子"
  },
  "console.time": {
    "prefix": "ke",
    "body": [
      "console.time('$TM_FILENAME_BASE');",
      "console.timeEnd('$TM_FILENAME_BASE');"
    ],
    "description": "console.time"
  },
  "Arrow function": {
    "prefix": "ar",
    "body": "const $1 = ($2) => {$3}",
    "description": "アロー関数"
  },
  "import": {
    "prefix": "im",
    "body": "import { $1 } from '$2';",
    "description": "インポート文"
  },
  "eslintDisable": {
    "prefix": "es",
    "body": "// eslint-disable-next-line",
    "description": "eslint disable"
  },
  "JSDoc": {
    "prefix": "jsd",
    "body": [
      "/**",
      " * @description",
      " * ",
      " */"
    ],
    "description": "JSDoc"
  },
}