User forums > Using Code::Blocks

Code completion occurring inside comments

(1/3) > >>

zabzonk:
Using C::B 12.11, I am getting code completion popping up inside C++ comments. Am I alone in this (I did search before posting), and is there an easy way of stopping it? Screenshot here http://imgur.com/bL9VtGb .


oBFusCATed:
I'd rather say this is a feature (at least for me) :)

zabzonk:
Well, it's not for me! I find it intensely irritating having CC pop up when I'm writing non-program text. At the very least, it should be optional.

ollydbg:
I think it is a cc bug, I can't reproduce this issue.

Alpha:
The guard:
codecompletion.cpp: 2874

--- Code: ---    if (   control->IsString(style)
        || control->IsComment(style)
        || control->IsCharacter(style)
        || control->IsPreprocessor(style) )
    {
        return;
    }

--- End code ---
should already prevent this.  Can you post a test case this behavior is occurring on?

Navigation

[0] Message Index

[#] Next page

Go to full version