Reputation: 68
Is it possible to enable auto code completion for variables in Netbeans? I see a similar question here, but it doesn't work on variables (correct me if I'm wrong).
This is my current code completion setting:
Upvotes: 1
Views: 1296
Reputation: 17343
This worked for me:
.;->;.;->;::;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;
Here's a screenshot:
The change should be immediately effective. After doing that you can type the first letter of any variable in your C++ source code and eligible variables should be listed in the prompt which automatically appears.
The screen shot below is a contrived example where there are several variables starting with 's'. All I did was type the letter 's' and the prompt appeared instantly, listing all of the local and global variables starting with 's':
Upvotes: 3