はじめに
Riderで対応するusing
がないときにList
と書くと
↑のように補完のサジェストの一番上にBoo.Lang.List<T>
が出てきてウザかったので、どうにかできないか調べたメモ。
設定でBooがサジェストに含まれないようにする
こちらのissueにやり方が書いてありました。
Preferences...
→ Editor
→ General
→ Auto Import
に Boo.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のポップアップメニューは矢印キーで上下移動しなくても操作内容で絞り込みができます。やり方はポップアップメニューが出てるときに絞り込みたい操作に含まれる文字を打っていくだけです。
ポップアップ時にsys
と打つことでSystem.Collections.Generic.List<T>
に絞り込んでいる様子
最初からこの操作を知っていればBoo
の余計な補完もあまり邪魔に感じなかったかもしれません。
Visual Studioの場合
最後に
Riderはいいぞ!