Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Boo2 on August 25, 2010, 06:23:42 pm

Title: Howto : Highlight all occurrences of currently selected symbol ?
Post by: Boo2 on August 25, 2010, 06:23:42 pm
Hi,

Question as title, is it possible to highlight all occurrences of the currently selected symbol ?  I've been using Notepadd++ which automatically highlights a symbol in an edit window wherever it occurs when I double-click anywhere within that symbol.  I'm so used to this facility I will find it really hard to do without, is there any easy way to implement this in Codeblocks if it doesn't already exist ?

Thanks,

Boo
Title: Re: Howto : Highlight all occurrences of currently selected symbol ?
Post by: killerbot on August 25, 2010, 06:47:13 pm
it does, dunno bu heart where the option is (I guess either in environment or editor settings). I do think there's also a minimal length.
Title: Re: Howto : Highlight all occurrences of currently selected symbol ?
Post by: Jenna on August 25, 2010, 09:49:33 pm
It's in "Settings -> Editor.. -> General settings -> Highlight occurrences".
Minimal length is three characters (hardcoded) to avoid too high system load.

If you use IncrementalSearch with highlight mode, you can start highlighting with the first character, but you have to type the string you want to see in the IncSearch toolbar.