LoginSignup
40
23

More than 5 years have passed since last update.

Visual Studio CodeのReference informationを非表示にする方法

Last updated at Posted at 2019-04-06

「references」表記がウザい

VSCodeでUnityのC#ファイルをいじっていたら、変数や関数宣言の上部に「references」という文字が表示されていることに気付いた。
referenceinfo.jpg
どうやら各変数、関数の参照数が表示され、注釈をクリックするとミニウインドウで参照先が閲覧できる機能らしい。

確かに便利な機能なのだが、行数表示の合間に逐一「references」の文字が挟まれ煩わしいため非表示にすることにした。

Editor: Code Lens をオフに

以下、本記事執筆時点での設定情報を記載する。

  • Mac版 バージョン1.32.3 (1.32.3)

Visual Studio Codeのメニューから設定画面へアクセス。
Code -> References -> Settings

検索窓に「editor.codeLens」と入力。
スクリーンショット 2019-04-06 15.42.43.png

表示される「Editor: Code Lens」のチェックを外せばOK。
スクリーンショット 2019-04-05 19.14.45.png

参考

Code Navigation in Visual Studio Code

40
23
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
40
23