netbeans c auto popup code completion

前端 未结 3 1896
清歌不尽
清歌不尽 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: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.

提交回复
热议问题