5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Visual Studio 2019 のオプション設定の自分用メモ

Last updated at Posted at 2020-03-04

Visual Studio 2019 を自分好みにカスタマイズする

Visual Studio は、ツール>オプション...(Ctrl+,) にて様々なカスタマイズが出来ますが、設定項目が多すぎて目的にたどりつけないことがあるので、自分用の覚書をここにまとめます。

コードエディタの空白表示

  • テキストエディタ>全般
    • 表示>空白の表示 をチェックオン
VS2019-editor-show-space.PNG

フォントおよび色

コードエディタの空白文字表示を有効にすると、色が目に痛いしフォントも気に入らないので変更します。

  • 環境>フォントおよび色
    • フォント:"Consolas" を指定する
    • 表示項目>スペースの表示:前景色 を "銀色" にする
VS2019-font-setting.PNG

タブ文字

コーディング規約(または宗教上の信念)に従って設定します。

  • テキストエディタ>C#>タブ
    • インデント:スマート
    • タブ:空白の挿入 を選択する
VS2019-editor-CS-tab.PNG

EditorConfig

先のタブ文字に関する設定を含めて、言語規則・書式規則・名前付け規則を、ソリューションフォルダ上の .editorconfig ファイルに書き出すことができます。このファイルがあると、ダイアログの設定よりファイル上内の設定が優先します。

  • テキストエディタ>C#>コードスタイル
    • [設定から.editorconfigファイルを生成] ボタンを押す

5
7
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
5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?