Auto-complete code blocks

Every time I program in CodeBlocks, the work automatically ends at the beginning. After some actions and minutes (I don’t know exactly what is the reason), the autofill is partially complete.

It fills in the names of the base variables, but does not fill in the internal names of structures, etc.

What reason?

In the "internal structure names", I mean, for example, for the variable gl.A:

typedef struct { bool A; } B; B gl; 

thanks,

and sorry for my poor english ...

+4
source share
3 answers

The Code :: Blocks (Code :: Completion) code completion plugin is great, but it has some bugs. For example, if you program in C ++, methods and attributes do not work.

There is currently a section in the Code :: blocks forum called CodeCompletion Redesign, where developers are constantly improving the plugin. After you double checked that your plugin settings are ok (Plugin> Manage Plugins or Setting> Editor ...> Code :: Completion and Symbol Browser), if your problem still persists, try visiting the forum.

+8
source

Also (as an addition to Lubulos answer), when you see this happening, try going to the left pane (Project Management), right-click your project and click "Repeat this project". You will notice that the panel showing the current code block at the top will be grayed out for a while. When it is restored, try writing again what you are typing, and check if the problem persists.

You can also sometimes use “Repeat this file”, which is slightly faster if you edited only one file from the very beginning (or since the last re-view).

+11
source

For me, it was a con "" at the end of the include statement that stopped the code completion plugin. Since the code is still compiled, it was hard to see.

Removing this con "" resolves the issue. Source:

 #include "DialogSA.h"' 

Changing this line to the following (that is, removing the cheater "'") fixed code in C :: B:

 #include "DialogSA.h" 

In a nutshell, your problem may not be due to the plugin itself, but a small error in your code (which in my case is still compiled, so it was hard to find)

0
source

Source: https://habr.com/ru/post/1213014/


All Articles