This should work by default.
What operating system are you using? What codeblocks version? From where?
If you are on linux you probably have to install the codeblocks contribution plugins ( i think the packet is cbcontrib-plugins or something like that)