LoginSignup
12
9

More than 5 years have passed since last update.

Visual Studio Code の設定 setting.json

Last updated at Posted at 2017-06-17

なかなか面倒くさくて設定していなかった。
Visual Studio Codeのsetting.jsonを設定してみた。
メモ書き程度に残す。尖った設定はしていないため汎用的だと思われる。
自由にカスタマイズしてどうぞ~

設定

setting.json
// 既定の設定を上書きするには、このファイル内に設定を挿入します
{
    // フォントのサイズ
    "editor.fontSize": 16,
    // フォントの変更 事前にMyrica MM というプログラミングしやすい視認性の高いフォントをインストールして適用しています。
    "editor.fontFamily": "Myrica MM, Consolas, Courier New",
    // Tabを押したときスペース何個分に相当するか
    "editor.tabSize": 2,
    // 半角スペースを「・」で表す
    "editor.renderWhitespace": "all",
    // カーソルの形を変える
    "editor.cursorStyle": "line-thin",
    // 行の折り返し設定
    "editor.wordWrap": "on",
    // このファイル形式には、この言語。という関連付けの設定
    "files.associations": {
        "*.txt": "markdown",
        "*.json.txt": "json"
    },
    // プレフィックスが一致する場合、Tabを押したときにスニペットを挿入するかどうか
    "editor.tabCompletion": true,
    // 文字の間隔
    "editor.letterSpacing": 0.5,
    // 何列目に縦線を入れるか 1行何文字以内という規定がある場合に便利
    "editor.rulers": [
        80,
        100
    ],
    // 最後の行を超えてスクロールするかどうか
    "editor.scrollBeyondLastLine": false,
    // 折り返しの行を左端をどう揃えるか
    "editor.wrappingIndent": "indent",
    // 入力中に補完候補をだすかどうか 以下の設定でコメントの中でもどこでも補完候補を出せるようになる
    "editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
    },
    // 自動フォーマット
    "editor.formatOnType": true,
    // 貼り付け時に自動でフォーマットしてくれる
    "editor.formatOnPaste": true,
    // カーソルが点滅するようになる
    "editor.cursorBlinking": "expand",
    // 今いる行が強調される
    "editor.renderLineHighlight": "all",
    // 選択した部分のドラッグアンドドロップを許可するかどうか
    "editor.dragAndDrop": false,
    // ファイル保存時にフォーマットする
    "editor.formatOnSave": true,
    // ファイルを開いたときエンコードを自動で推測するかどうか
    "files.autoGuessEncoding": true,
    // 配色テーマ
    "workbench.colorTheme": "Monokai"
}

あとがき

おすすめの設定などあれば教えてください:relaxed:

12
9
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
12
9