LoginSignup
2
1

More than 3 years have passed since last update.

【Rider】Listのインポート補完にBoo.Lang.List<T>を含めないようにする【Unity】

Last updated at Posted at 2019-11-16

はじめに

Riderで対応するusingがないときにListと書くと

↑のように補完のサジェストの一番上にBoo.Lang.List<T>が出てきてウザかったので、どうにかできないか調べたメモ。

設定でBooがサジェストに含まれないようにする

こちらのissueにやり方が書いてありました。

Preferences...EditorGeneralAuto ImportBoo.Lang* を追加するだけです。

ついでにUnityScript.*も追加しておくと良さそうです。

Yes, see #1252 - you might also want to add UnityScript.*. Unfortunately, Rider 2019.2 doesn't allow merging settings for auto import, so the plugin can't automatically set this. Hopefully this will be addressed in Rider 2019.3

なぜ未だに補完に含まれるのか?

BooもUnityScriptもだいぶ昔にUnityから消え去ってる はずなのになぜ?

https://github.com/JetBrains/resharper-unity/issues/574#issuecomment-393479753

I guess we can't simply strip them, consider if some project has a dll compiled with Boo.Lang reference.
It might be a solution to check dependencies of all referenced assemblies and if none of them requires Boo.Lang, UnityScript, UnityScript.Lang it is safe to strip them. At least references from Assets and Packages should be checked. Does it sound good?

「プロジェクトによってはBooに依存している場合があるので簡単に削除はできない」(意訳)

ちなみに

Riderのポップアップメニューは矢印キーで上下移動しなくても操作内容で絞り込みができます。やり方はポップアップメニューが出てるときに絞り込みたい操作に含まれる文字を打っていくだけです。

Nov-16-2019 12-17-34.gif
ポップアップ時にsysと打つことでSystem.Collections.Generic.List<T>に絞り込んでいる様子

最初からこの操作を知っていればBooの余計な補完もあまり邪魔に感じなかったかもしれません。

Visual Studioの場合

最後に

Riderはいいぞ!

2
1
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
2
1