Setting Up CodeBlocks for Programming(Windows edition)

Eswar Abisheak
4 min readJul 3, 2020

Hmm, Let’s get started!

What is Code:: Blocks?

Code::Blocks is a free, open-source cross-platform IDE that supports multiple compilers including GCC, Clang, and Visual C++. It is developed in C++ using wxWidgets as the GUI toolkit. Using a plugin architecture, its capabilities and features are defined by the provided plugins.

Requirements or things to download

  1. Download the code blocks exe file for windows

There are two different ways to setup (Same procedure for 32bit and 64bit)

  1. Download the codeblocks setup file with the inbuilt compiler (NOOBS version) “codeblocks-20.03mingw-setup.exe”.
  2. Download codeblocks without an inbuilt compiler and use your own compiler. (Pro version) “codeblocks-20.03-setup.exe”.

I personally prefer MinGW compiler you can download the compiler of your choice.Here are a few lists of compilers

After downloading the preferred setup file install it.

If you have used the setup with inbuild compiler your good to go.

To setup compiler

1. Download the preferred compiler and install it. Don't change the install directory unless you know what you are doing.

The default directory is C:\MinGW.

2. Now you have to setup path in your computer

type edit the system environment variables in search and open it.

the path to add in the C:\MinGW\bin then click ok.

Eureka you're done with installation. Now you have to link them both.

Let's link them up

  1. run code::blocks
  2. Go to Settings(in the dropdown menu) and tap on the Compiler option (dropdown item)

3.you have to enable the flags.

4. You have to select both c and c++ flags in order to use both c and c++.

5. Now link your compiler to code blocks by switching to Toolchain executables.

6. Click ok and close the code blocks by accepting to save changed preferences.

Now Your done with the setup and get ready to turn coffee into code.

Note:-

I use C++17 as my default coding language in computer programming.

#include<bits/stdc++.h>

using namespace std;

int main(){

return 0;

}

It is my standard template for programming.

Congrats you're done with your basic setup.

Now let’s get some plugins to ease our task.

AbbreviationsCode::Blocks AutoComplete plugin.AutosaveSaves project files between intervals.Class WizardProvides wizard for creating new classes.Code CompletionProvides code completion functionality and class browser.Source Code Formatter (AStyle)Formats source code files with specific style.Code SnippetsManages small pieces of code (i.e. snippets).Code StatisticsShows various statistics from source code files.Copy Strings to ClipboardCopies literal strings from the current editor to clipboard.CppCheckIntegrates the static code analyzer Cppcheck into Code::Blocks.CscopeIntegrates Cscope (http://cscope.sourceforge.net/) into Code::Blocks.RegEx TestbedRegular expressions testbed.

--

--