CCWO

挫けそうになるブログ

Visual Studio Code (VSCode) 今の使い方

Visual Studio Code - Visual Studio

この4月ごろからVisual Studio Codeを使い始めて、自分の周りでもVSCodeが徐々に普及していっていて、なんだか少し嬉しい気持ちです。(自分が特に布教活動していたわけではないですが、使っているところをチラ見して導入を検討してくれたみたいです。)

今自分がVSCodeを使っている場面は
・C, C++, Pythonの実行環境 兼 ソースコードを見る
Verilog HDL, VHDLソースコードを見る
TeXの編集, プレビュー
・メモ帳(普通のエディターとして)
といった感じで完全に普段使いに定着しています。
C, C++の実行環境としてはwindows上で使う分には申し分ないほどですし、Pythonの実行環境としてはAnacondaがインストールしてあれば非常に簡単に環境を構築することができ非常に便利です。また現在MicrosoftVSCodePythonに対して多大なサポートを出しているのでこれからも期待することができます。(ただ、PythonはSpyderで開発して、VSCodeを使うときは動作がある程度把握できているプログラムがほとんどですね。SpyderでのPythonプログラムのデバッグは便利すぎてほかに移る選択肢が見当たりません(笑)なので、今は既知のプログラムの実行環境としてって感じですね。)

最後に自分のVSCodeの環境を

cloudSettings

{"lastUpload":"2017-12-19T12:08:21.766Z","extensionVersion":"v2.8.7"}

extensions.json

[
  {
    "metadata": {
      "id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
      "publisherId": "formulahendry.auto-rename-tag",
      "publisherDisplayName": "formulahendry"
    },
    "name": "auto-rename-tag",
    "publisher": "formulahendry",
    "version": "0.0.15"
  },
  {
    "metadata": {
      "id": "f583eafd-aa0d-4ccb-8f44-d1e610389660",
      "publisherId": "CoenraadS.bracket-pair-colorizer",
      "publisherDisplayName": "CoenraadS"
    },
    "name": "bracket-pair-colorizer",
    "publisher": "CoenraadS",
    "version": "0.10.14"
  },
  {
    "metadata": {
      "id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3",
      "publisherId": "formulahendry.code-runner",
      "publisherDisplayName": "formulahendry"
    },
    "name": "code-runner",
    "publisher": "formulahendry",
    "version": "0.8.5"
  },
  {
    "metadata": {
      "id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
      "publisherId": "Shan.code-settings-sync",
      "publisherDisplayName": "Shan"
    },
    "name": "code-settings-sync",
    "publisher": "Shan",
    "version": "2.8.7"
  },
  {
    "metadata": {
      "id": "690b692e-e8a9-493f-b802-8089d50ac1b2",
      "publisherId": "ms-vscode.cpptools",
      "publisherDisplayName": "ms-vscode"
    },
    "name": "cpptools",
    "publisher": "ms-vscode",
    "version": "0.14.5"
  },
  {
    "metadata": {
      "id": "d0bfc4ab-1d3a-4487-8782-7cf6027b4fff",
      "publisherId": "ms-vscode.csharp",
      "publisherDisplayName": "ms-vscode"
    },
    "name": "csharp",
    "publisher": "ms-vscode",
    "version": "1.13.1"
  },
  {
    "metadata": {
      "id": "61d03280-3919-4dd1-bce1-178ca21fdeaf",
      "publisherId": "James-Yu.latex-workshop",
      "publisherDisplayName": "James-Yu"
    },
    "name": "latex-workshop",
    "publisher": "James-Yu",
    "version": "3.10.0"
  },
  {
    "metadata": {
      "id": "a41c1549-4053-44d4-bf30-60fc809b4a86",
      "publisherId": "christian-kohler.path-intellisense",
      "publisherDisplayName": "christian-kohler"
    },
    "name": "path-intellisense",
    "publisher": "christian-kohler",
    "version": "1.4.2"
  },
  {
    "metadata": {
      "id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
      "publisherId": "ms-python.python",
      "publisherDisplayName": "ms-python"
    },
    "name": "python",
    "publisher": "ms-python",
    "version": "0.9.0"
  },
  {
    "metadata": {
      "id": "ee7402cb-a292-4894-84b1-a024ca8d8bb5",
      "publisherId": "gizak.shortcuts",
      "publisherDisplayName": "gizak"
    },
    "name": "shortcuts",
    "publisher": "gizak",
    "version": "0.0.1"
  },
  {
    "metadata": {
      "id": "6ad45f5a-09ec-44e5-b363-867ddc1ec674",
      "publisherId": "shardulm94.trailing-spaces",
      "publisherDisplayName": "shardulm94"
    },
    "name": "trailing-spaces",
    "publisher": "shardulm94",
    "version": "0.2.11"
  },
  {
    "metadata": {
      "id": "feb7e3b5-7d35-4f95-a3d2-61eeaa12efa5",
      "publisherId": "mshr-h.VerilogHDL",
      "publisherDisplayName": "mshr-h"
    },
    "name": "VerilogHDL",
    "publisher": "mshr-h",
    "version": "0.0.13"
  },
  {
    "metadata": {
      "id": "256a14ed-dd90-4236-89a1-58ce8abf5ce9",
      "publisherId": "mshr-h.VHDL",
      "publisherDisplayName": "mshr-h"
    },
    "name": "VHDL",
    "publisher": "mshr-h",
    "version": "0.0.2"
  },
  {
    "metadata": {
      "id": "50810048-1465-4380-9716-6cd466f2ef8e",
      "publisherId": "Compulim.vscode-clock",
      "publisherDisplayName": "Compulim"
    },
    "name": "vscode-clock",
    "publisher": "Compulim",
    "version": "0.0.1"
  },
  {
    "metadata": {
      "id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
      "publisherId": "robertohuertasm.vscode-icons",
      "publisherDisplayName": "robertohuertasm"
    },
    "name": "vscode-icons",
    "publisher": "robertohuertasm",
    "version": "7.19.0"
  }
]

keybindings.json

// Empty

settings.json

{
    "editor.cursorStyle": "line-thin",
    "editor.cursorBlinking": "phase",
    "editor.fontSize": 12,
    "editor.minimap.enabled": true,
    "editor.minimap.maxColumn": 100,
    "editor.mouseWheelZoom": true,
    "editor.renderIndentGuides": true,
    "editor.fontLigatures": true,
    "editor.renderWhitespace": "boundary",
    "editor.rulers": [
        80,
        100
    ],
    "editor.wordWrap": "on",
    "files.insertFinalNewline": true,
    "files.trimTrailingWhitespace": true,
    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
    "window.zoomLevel": 0,
    "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}${separator}${appName}",
    "workbench.iconTheme": "vscode-icons",
    "workbench.startupEditor": "none",
    "workbench.colorTheme": "Solarized Dark",
    "vsicons.dontShowNewVersionMessage": true,
    "python.pythonPath": "C:\\Anaconda3\\python.exe",
    "latex-workshop.chktex.enabled": false,
    "latex-workshop.latex.toolchain": [
        {
            "command": "ptex2pdf",
            "args": [
                "-l",
                "-ot",
                "-kanji=utf8 -synctex=1",
                "%DOC%"
            ]
        }
    ],
    "sync.gist": "",
    "sync.lastUpload": "",
    "sync.autoDownload": false,
    "sync.autoUpload": false,
    "sync.lastDownload": "",
    "sync.forceDownload": false,
    "sync.anonymousGist": false,
    "sync.host": "",
    "sync.pathPrefix": "",
    "sync.quietSync": false,
    "sync.askGistName": false
}

vsicons.settings.json

{"version":"7.19.0","status":0,"welcomeShown":true}

なんだかsettings code syncの内容をぺたぺた貼ったら意外と量がありました。今はこんな感じです。だいぶ今はこれでこなれてきた感じです。vimバインドは今修行中です(´・_・`)