How to change/reset zoom in CodeBlocks?

I pressed Ctrl + Capslock instead of Ctrl+Tab 4-5 times. Each time the font-size of the editor shrunk. I checked Settings -> Editor -> Font, but the problem was not from font-size, it's like a "zoom-out" thing. I tried sudo apt-get remove codeblocks and sudo apt-get install codeblocks but unfortunately it didn't reset the preferences. What can I do now?


Solution 1:

It's just a zoom out shortcut. I was able to solve the problem by holding Ctrl and scrolling with the mouse wheel. Ctrl + Scroll Up to Zoom Out and Ctrl + Scroll Down to Zoom In.

Solution 2:

I know this is an old question, but the answers are incomplete.

To reset your editor font size to normal you can use:

Edit->Special commands->Zoom->Reset from the menu,

or you can bind a shortcut for that (you need to have the codeblocks-contribpackage installed):

Settings->Editor->Keyboard Shortcuts and set to what you want, mine is Ctrl+0 (zero) because that is a common shortcut for this.