Eclipse CDT (for C++/C development) how to invoke content assist automatically while typing

后端 未结 4 838
傲寒
傲寒 2021-01-31 05:22

Eclipse CDT (for C++/C development) how to invoke content assist automatically while typing like in Visual Assist for Visual Studio. In other words how to give triggers as all k

相关标签:
4条回答
  • 2021-01-31 05:28

    It seems that all the useful content assist options are turned off by default. Go to the preferences -> C++ -> Editor -> Content Assist -> Advanced, and check Parsing-based proposal for default (top list) and then some more (like parsing, word, template) in the bottom one.

    Of course, you're free to check even more, but parsing-based is the one that matters the most. Of course, you also need to have indexing enabled, by at least that seems to be enabled by default.

    And, of course, as already suggested, go to the Content Assist pane itself and make sure it's all turned on, and reduce the delay to make it show up faster (unless you want it to only show up when you press Ctrl+Space).

    0 讨论(0)
  • 2021-01-31 05:36

    Have you tried Ctrl+Space? Also search for "Content Assist" in the preferences.

    0 讨论(0)
  • 2021-01-31 05:52

    The sad thing is that - at least to my knowledge - content assist didn't change in those 2 years. It is still only triggered by ".", "->" and "::" and there is no way to configure it. The Eclipse Java editor though can be freely configured as wished by Nadith Pathirage: You can add any keys you wish to trigger content assist there. I wonder why CDT can't achieve the same...

    (I know this is an old thread, but the topic is still important in my opinion...)

    0 讨论(0)
  • 2021-01-31 05:53

    ctrl+Space can work well. but configure as auto-complete just like emacs auto-complete or vim youcompleteme, when typing words will invoke proposal, no way.

    0 讨论(0)
提交回复
热议问题