netbeans c auto popup code completion

前端 未结 3 1895
清歌不尽
清歌不尽 2020-12-15 10:17

I\'m using Netbeans 7 to program C.

Imagine if I type prin and CTRL+SPACE a popup window will come up with the printf suggesti

相关标签:
3条回答
  • 2020-12-15 10:41

    Anything language auto popup using "tab key"

    Goto -> Tools -> Options -> Keymap -> 'completion' search in "search :" box.

    click on [...] under 'shortcut' column where 'Actions' "Show Code Completion Popup" -> edit -> press tab -> press 'ok'

    Now check and when editing.

    0 讨论(0)
  • 2020-12-15 10:45

    If you have Netbeans with the C/C++ plugin installed, you can go to Tools -> Options -> Editor -> Code Completion.

    Switch the Language drop down to C/C++. You can then modify the Auto Popup Triggers for C/C++ Identifiers to something like this:

    .;->;.*;->*;::;new ; ;a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z;
    

    This will cause the auto completion window to popup once any of the above patterns are entered. Tested in Netbeans 8.0.2 works like a charm for me.

    0 讨论(0)
  • 2020-12-15 10:53

    I'm using netbeans with Java, but it may work the same way. It should be possible to enable autocomplete for C as well. Check Tools -> Options -> Editor -> Code completion. If it's disabled, you can invoke it with Ctrl + Space. When enabled it should pop up automatically. Hope this helps.

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