How to make auto-completion list all (static) fields of a certain class that has appropriate variable-type when ctrl+space at a slot of parameter in a certain function?
Example
I tried to ctrl+space in the below code :-
(Code as text is here http://coliru.stacked-crooked.com/a/b42ff0f9409851aa.)
问题:怎么让它显示出来E_1
E_2
E_3
?
如果我真的需要一个插件,我不介意再使用一个插件。
它目前有效,但仅适用于枚举:-
我的解决方法
在实践中,为了获得聪明的线索,我必须输入更多 (PrototypeList::
) :-
赏金原因
这是当前答案的结果(公民马特's):-
有所不同,但仍不显示E_1
E_2
E_3
.
你有没有尝试过智能完成 https://www.jetbrains.com/help/resharper/2016.3/Coding_Assistance__Code_Completion__Smart.html?此功能将仅显示对当前上下文有效的完成项目。我认为它也适用于 C++。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)