{"id":96634,"date":"2018-01-19T03:37:32","date_gmt":"2018-01-19T02:37:32","guid":{"rendered":"http:\/\/sftarticles.wpenginepowered.com\/en\/?p=96634"},"modified":"2025-07-01T23:41:12","modified_gmt":"2025-07-02T06:41:12","slug":"get-started-with-codeblocks","status":"publish","type":"post","link":"https:\/\/cms-articles.softonic.io\/en\/get-started-with-codeblocks\/","title":{"rendered":"Code::Blocks Tutorial: What it is and How to Use it"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/code-blocks.en.softonic.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Code::Blocks<\/a>&nbsp;is an open-source IDE (Integrated Development Environment). It helps you to work on software and programs you are developing, including coding, debugging, testing, and much more. It supports many compilers, such as GNU GCC (MinGW and Cygwin) and MS Visual C++. It is also free to download. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If this is your first time with this development tool, you&#8217;re in the right place! We&#8217;ll reveal<strong> what is Code::Blocks<\/strong> and <strong>how to use it<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Code::Blocks?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Simply put, Code::Blocks is a <strong>free cross-platform integrated development environment<\/strong> for C\/C++ and Fortran. Code::Blocks is built around a plugin framework, which means you can extend its core functionality with various plugins. Essentially, Code::Blocks is perfect for building onto because with easy integration with user-made plugins; you don&#8217;t need to edit any of the source code to add the functionality you need. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Although the software is <strong>open-source<\/strong>, so if you need to edit the code, you can. While Code::Block inherently supports the functionality of multiple compilers and debuggers, it isn\u2019t in itself any of these systems.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can think of<a href=\"https:\/\/code-blocks.en.softonic.com\/\"> <\/a>Code::Blocks as a house. The house itself is an empty shell, but it has rooms that certain functions and systems can use. Not all Code::Blocks installation files contain compilers. Instead, Code::Blocks can use the functionality of whatever compilers you have installed, whether that\u2019s GCC, Clang or Visual C++, or any other compiler that tickles your fancy. While you let the house metaphor simmer, let\u2019s take a look at some of the features Code::Blocks is known for.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2018\/01\/Code-Blocks-tutorial-what-it-is-and-how-to-use-it-1024x576.jpg\" alt=\"Code Blocks tutorial what it is and how to use it\" class=\"wp-image-180409\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Code Editor<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This integrated development environment (IDE) features <strong>code folding and syntax highlighting<\/strong>, driven by a Scintilla editing component. It also features a class browser, hex editor, C++ code completion, among various other utilities. The code editor organizes any files you have open into easily accessible tabs and supports personalized syntax highlighting colors, font, and font size selection.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Compilers<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Code::Blocks features <strong>support for multiple compilers<\/strong>. Among the most widely used supported compilers are GCC, Digital Mars, LLVM Clang, MinGW, Microsoft Visual C++, Watcom, LCC, Borland C++, and the Intel C++ compiler. Code::Blocks was written in C++ but features decent support for other coding languages such as Fortran and D. The installation file also includes a plugin with support for further programming languages.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Debugger<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Debugger shipped with the Code::Blocks installation file has full breakpoint support. A Breakpoint refers to an intentional pause or stopping point written into a program. Breakpoints are put in place for debugging purposes to gather more information about a program during its execution and are sometimes simply called pauses. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Code::Blocks streamlines the <strong><a href=\"https:\/\/code-blocks.en.softonic.com\/articles\/the-basics-of-debugging-in-codeblocks\" target=\"_blank\" rel=\"noreferrer noopener\">debugging process<\/a><\/strong> by giving you access to the argument display, call stack, thread switching, custom memory dump, CPU registers, local function symbol, disassembly, and GNU Debugger Interface.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Easy User Migration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Code::Blocks is an increasingly popular integrated development environment. It, therefore, has features specifically designed for<strong> users migrating<\/strong> from other IDE\u2019s. Including Dev-C++, Microsoft Visual C++ project import for MSVC 7 and 10, and Dev-C++ Devpak support.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code::Blocks Tutorial: How to Use it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With any software, before you learn to use it, you need to install it. While most installs are as simple as clicking a download button, accepting a bunch of conditions, and voila, Code::Blocks might require a little thought.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To condense a long process, if you have a compiler already set up on your system, you simply click the download button, and you\u2019re home free. This version doesn\u2019t come with a built-in compiler, so you\u2019ll just choose the compiler you have installed when it asks you to during use.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you don&#8217;t have a compiler pre-installed, you\u2019ll need a different installation file. To access this, click the link underneath the Code::Blocks download button, and you\u2019ll get to the official website. Now click \u2018Download the binary release,\u2019 which is the easiest way to get the utility installed, now onto the bit that requires thought or at least some reading. You\u2019ll see a list of download links if you scroll down to \u2018Microsoft Windows.\u2019 The one you want that includes a compiler is called \u2018codeblocks-20.03mingw-setup.exe\u2019. Here you can choose to either download from FossHUB or Sourceforge.net.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The minds behind Code::Blocks think of everything. On the list of downloads is an executable file (.exe) for people who don&#8217;t have administrative rights on their PCs, and another exe that includes all the Code::Blocks plugins. They really try to make things as easy as possible, not just within their IDE but also with installation. Here\u2019s an easy guide for <a href=\"https:\/\/code-blocks.en.softonic.com\/articles\/troubleshooting-common-problems-when-using-codeblocks\" target=\"_blank\" rel=\"noreferrer noopener\">troubleshooting Code::Blocks<\/a> if it misbehaves.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Code::Blocks<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To get started, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/code-blocks.en.softonic.com\/download\" target=\"_blank\" rel=\"noreferrer noopener\">Download the Code::Blocks installer<\/a> as mentioned above.<\/li><li>Run the installer. It&#8217;s a standard installer for Windows; just press Next after reading each screen. If using another operating system, choose the appropriate option on the downloads page referenced above.<\/li><li>If you&#8217;re planning on&nbsp;installing a compiler after you&#8217;ve installed Code::Blocks, read the information provided in the installer. Also, see this link for <a href=\"http:\/\/wiki.codeblocks.org\/index.php\/Installing_a_supported_compiler\" target=\"_blank\" rel=\"noreferrer noopener\">help setting up your compiler<\/a>.<\/li><li>If you downloaded the installer that doesn&#8217;t come with MinGW, you may have to configure the compiler manually (usually Code::Blocks auto-detects the compiler).<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"831\" src=\"https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-2-Install-Software-1024x831.png\" alt=\"\" class=\"wp-image-96636\" srcset=\"https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-2-Install-Software-1024x831.png 1024w, https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-2-Install-Software-300x243.png 300w, https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-2-Install-Software-768x623.png 768w, https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-2-Install-Software.png 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Starting your first project<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1. Launch the Project Wizard<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Select&nbsp;<strong>File-&gt;New-&gt;Project&#8230;<\/strong> to start a new project. You can select from many types of templates to help get your project started. For your first project, select <strong>Console application<\/strong>, as this is the most common for general purposes. Click <strong>Go<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"594\" height=\"440\" src=\"https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-4-Start-a-new-project.png\" alt=\"\" class=\"wp-image-96638\" srcset=\"https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-4-Start-a-new-project.png 594w, https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-4-Start-a-new-project-300x222.png 300w\" sizes=\"auto, (max-width: 594px) 100vw, 594px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2. Select the destination for your project.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Choose your programming language, (for example C++) when prompted for a language. Then, on the next screen, give the project a title and select a destination folder. Code::Blocks will generate the remaining entries from these two.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"431\" src=\"https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-5-Select-Destination-For-Project.png\" alt=\"\" class=\"wp-image-96639\" srcset=\"https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-5-Select-Destination-For-Project.png 528w, https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-5-Select-Destination-For-Project-300x245.png 300w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3. Choose your compiler.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">This is often the default compiler that you use on your machine. The default builds will be debug &amp; release. If another option is needed, select it here.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2018\/01\/Image-3-Compiler-Autodetect.png\" alt=\"\" width=\"960\" height=\"586\">Step 4.&nbsp;Finish<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">After selecting <strong>Finish<\/strong>, you&#8217;re on your way to your first project!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Use Code::Blocks for C++<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve installed Code::Blocks on your PC, all that\u2019s left to do is run it. As soon as you <a href=\"https:\/\/code-blocks.en.softonic.com\/articles\/get-started-with-codeblocks\" target=\"_blank\" rel=\"noreferrer noopener\">start Code::Blocks up<\/a>, you\u2019ll see a list of compilers. The utility will detect which one you have and automatically select it. It will ask you if you want to make the compiler the default viewer for C++ files, which you should. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, click on File&gt; New &gt;Project, and you\u2019ll <strong>see a new window<\/strong>. Select \u2018Console application\u2019 and click \u2018go.\u2019 You\u2019ll need to click \u2018Next\u2019 in succession until the language selection dialog box opens. Choose the programming language you use, and then you\u2019ll be prompted to choose a place to save your project.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Rather place the project in its own folder because it is likely to create several files. Give your project a name and click \u2018Next.\u2019 Now, you will set up your compiler. You don\u2019t need to change any settings you see here, so just click \u2018finish\u2019 and open the main.cpp file on the left of the screen.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By now, you should have your main.cpp file, which you can modify if you wish. Currently, it just says \u2018Hello World!\u2019, run it as is. Hit F9, which compiles and then runs the program. You now have a <a href=\"https:\/\/code-blocks.en.softonic.com\/articles\/create-a-sample-program-with-codeblocks\" target=\"_blank\" rel=\"noreferrer noopener\">working sample program<\/a>. The main.cpp code can simply be edited and then compiled and run again using F9.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Use Code::Blocks in Google Docs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Code::Blocks is <strong>available as a plugin<\/strong> for Google Docs. Simply go to the Google Workspace Marketplace, type in Code::Blocks and click install. Read through and accept all the permissions if they\u2019re agreeable. Otherwise, you won\u2019t be able to use its full functionality.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve <strong>completed the install<\/strong>, Code::Blocks is easy to use. Your first step is to create a new document in Google Docs. Next, head to \u2018Add-ons\u2019 and choose Code::Blocks from the drop-down menu. Code::Blocks will open up a new panel on the right side; from here, you\u2019ll have access to all the utility\u2019s functionalities.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you need to write or paste code into the <strong>body of the document<\/strong>. Once you have your code in place, select it, and you\u2019ll be able to choose a language from the language drop-down menu or a theme from the theme drop-down menu. Click preview to view your code, and as soon as your code looks exactly how you want it, click Format. Your code should now be formatted perfectly, and you can move on to the next piece of code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code to your heart&#8217;s content<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you know how Code::Blocks works, you can get started on your first project. It may seem complicated, but you should get the hang of it soon. Feel free to show us anything you&#8217;re currently working on!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Code::Blocks&nbsp;is an open-source IDE (Integrated Development Environment). It helps you to work on software and programs you are developing, including coding, debugging, testing, and much more. It supports many compilers, such as GNU GCC (MinGW and Cygwin) and MS Visual C++. It is also free to download. If this is your first time with this &hellip; <a href=\"https:\/\/cms-articles.softonic.io\/en\/get-started-with-codeblocks\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Code::Blocks Tutorial: What it is and How to Use it&#8221;<\/span><\/a><\/p>\n","protected":false},"author":9221,"featured_media":96640,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wpcf-pageviews":2},"categories":[2518,2441],"tags":[3184],"usertag":[],"vertical":[],"content-category":[],"class_list":["post-96634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","category-how-to","tag-app-subdomain-redirectioncode-blocks"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/96634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/users\/9221"}],"replies":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/comments?post=96634"}],"version-history":[{"count":1,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/96634\/revisions"}],"predecessor-version":[{"id":328340,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/96634\/revisions\/328340"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/media\/96640"}],"wp:attachment":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/media?parent=96634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/categories?post=96634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/tags?post=96634"},{"taxonomy":"usertag","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/usertag?post=96634"},{"taxonomy":"vertical","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/vertical?post=96634"},{"taxonomy":"content-category","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/content-category?post=96634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}