News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Autocomplete deletes code on the right side of the line.

Started by kotvkvante, February 14, 2024, 07:06:03 PM

Previous topic - Next topic

kotvkvante

Autocomplete deletes code on the right side of the line.
I don't want codeblocks to behave this way =(



I find exact same problem in VS code issues:
https://github.com/microsoft/vscode-cpptools/issues/10553
I failed to find similar option in CB editor settings   

ollydbg

I'm really not quite understand the problem.

It looks like the macro definition "WINDOW_HEIGHT" is defined some where before this line? Not in the same line?

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Miguel Gimenez

It is not deleted, just covered by a wide window with the same colour as background's one.

kotvkvante


kotvkvante

Autocompletion in #define removes everything on right side  ..  Expected behavior in second example. Everything on the right side remains the same

https://youtu.be/dXB4g8tLvYI

ollydbg

Quote from: kotvkvante on February 15, 2024, 10:47:33 AM
Autocompletion in #define removes everything on right side  ..  Expected behavior in second example. Everything on the right side remains the same

https://youtu.be/dXB4g8tLvYI

OK, I see the issue now by the screencast. Thanks.

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.