LoginSignup
6
4

More than 3 years have passed since last update.

Visual Studio Code設定メモ

Last updated at Posted at 2020-08-04

Extensions

改行コードを変更する

settings.json設定例
{
   "files.eol": "\n"
}

参考 :

タブインデント、空白を表示させる設定

settings.json設定例
{
    "editor.insertSpaces": false,
    "editor.renderWhitespace": "all"
}

参考 :

インデント幅を言語毎に指定する

settings.json設定例
{
    "[javascript]": {
      "editor.tabSize": 2
    },
    "[html]": {
        "editor.tabSize": 4
    }
}

参考 :

Smartyのデリミタを変更

やったこと
blockComment ["{", "}"], => [ "<{*", "*}>" ] へ修正
brackets ["{", "}"], => ["<{", "}>"], へ修正
autoClosingPairs , surroundingPairs["<{", "}>"], を追加

C:\Users\<USER NAME>\.vscode\extensions\imperez.smarty-0.3.0\smarty.configuration.json

smarty.configuration.json設定例
{
    "comments": {
        // symbols used for start and end a block comment. Remove this entry if your language does not support block comments
        "blockComment": [ "<{*", "*}>" ]  // [ "{*", "*}" ]から変更
    },
    // symbols used as brackets
    "brackets": [
        ["<{", "}>"],  // ["{", "}"],から変更
        ["[{", "}]"],
        ["[", "]"],
        ["(", ")"]
    ],
    "autoClosingPairs": [
+       ["<{", "}>"],
        ["{", "}"],
        ["[", "]"],
        ["(", ")"],
        ["\"", "\""],
        ["'", "'"],
        ["`", "`"]
    ],
    "surroundingPairs": [
+       ["<{", "}>"],
        ["{", "}"],
        ["[", "]"],
        ["(", ")"],
        ["\"", "\""],
        ["'", "'"],
        ["`", "`"]
    ]
}

参考 :

*.tplなどでEmmet(Html/CSSの入力補完)を効かせる

settings.json設定例
    "emmet.includeLanguages": {
        "smarty": "html"
    },

参考 :

自動アップデートを無効化する方法

C:\Users\<ユーザー名>\AppData\Roaming\Code\User\settings.json

settings.json設定例
{
    "update.channel": "none"
}

参考 :

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4