Visual Studio Codeの設定
VSCodeに入れている拡張機能や設定を備忘として残します。 基本的にはアカウントの共有機能を使うと便利なのですが、会社のパソコンで個人のGitHubやMicrosftアカウントを紐づけてしまうと、誤爆が発生した場合悲惨なのでここに設定を残します。 拡張機能 拡張機能 概要 WSL WSLでVSCodeを使うときに便利 GitLens 修正をだれが行ったかを確認する Material Icon Theme アイコンがきれいになる markdownlink マークダウン形式のファイルを書く時には必須 Python Pythonを書く時には必須 Pylance Pythonを書く時には必須 Ruff Pythonのlinter json jsonファイルを編集するときに便利 indent-rainbow Pythonのプログラムを書いていると便利 Rainbow CSV CSVファイルを見るときに便利 Hex Editor Binaryファイルを見るときに便利 キーショートカット 機能 キー View: Toggle Maximized Panel Ctrl + Shift + j フォント Source Han Code JPを利用しているので、ダウンロードしてインストールを実施します。 下記のGitHubに詳細が記載されています。 公式GitHub: https://github.com/adobe-fonts/source-han-code-jp?tab=readme-ov-file Source Han Code JPとは Source Han Code JPとは、日本語にも対応したコーディング向けのフォントです。 Adobe社が開発したフォントの「Source Code Pro」と「Source Han Sans JP(源ノ角ゴシック JP)」を組み合わせたものです。 設定ファイル(settings.json) 上記の拡張機能を入れたうえで、最終的に下記の設定ファイルです。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 { "editor.fontFamily": "'Source Han Code JP', Consolas, 'Courier New', monospace", "editor.mouseWheelZoom": true, "workbench.iconTheme": "material-icon-theme", "workbench.colorTheme": "Monokai", "[markdown]": { "editor.formatOnSave": true, "editor.formatOnPaste": true }, "[python]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll": "explicit", "source.organizeImports": "explicit" }, "editor.defaultFormatter": "charliermarsh.ruff" }, }