Of course, in the end, it’s your choice that matters. Eclipse is a good IDE for that job but it consumes more system resources than Code Blocks.
![how to install code blocks how to install code blocks](https://assets.linuxhelp.com/scr/4c7f28c7ca8f47cdf3c40a3edf2d0bb6.png)
Having an IDE makes running C or C++ programs on Linux easier. I leave it up to you to explore it further by going through its wiki and user manual. That’s the bare minimum information you need about Code Blocks. When you run the code, it opens a new terminal window to display the output. The buttons to build, run and build and run together is right their on the top. You can write your code and organize them in projects. If you have ever used another IDE like Eclipse, you won’t find it difficult to use Code Block. The user interface of Code Blocks is definitely not modern but keep in mind that the IDE is lightweight and it hardly consumes 50 MB of RAM. Look up Code::Blocks IDE by searching for that term.
![how to install code blocks how to install code blocks](https://linoxide.com/wp-content/uploads/2021/03/download-debian-package.png)
Create a compressed file named Code::Blocks on the Debian distribution. Do a quick search for Debian files to install CodeBlocks on Ubuntu. Method 2: Use a Deb file to install the software package. In my case, I already had gcc installed on my Ubuntu system and it was well recognized by Code Blocks. Code::Blocks’ IDE should be installed using APT on Ubuntu 20.04. When you first start Code Blocks, it looks for all the available compilers on your system and adds it to the path so you don’t have to configure it on your own. This is what it looks like in Ubuntu’s default GNOME version: Search for Code Blocks in the system menu.
How to install code blocks how to#
You can install them using the codeblocks-contrib package: sudo apt install codeblocks-contrib How to use Code Blocks Under the field ‘Compiler’s installation directory’, ensure that the last folder in the selected path is MinGW. Then inside the settings window, navigate to the tab titled ‘Toolchain executables’. It is advised to also install additional plugins to get more out of the Code Blocks IDE. Head on to the Settings drop-down menu and select Compiler.
How to install code blocks update#
Update the package cache so that system knows about the availability of the additional packages from the newly added repository: sudo apt updateĪnd finally, you can install Code Blocks on Ubuntu-based distributions using the apt install command: sudo apt install codeblocks Though it is usually enabled by default, it won’t harm to enable universe repository first: sudo add-apt-repository universe The Code Blocks IDE is available in the universe repository of all Ubuntu releases. Install Code Blocks on Ubuntu-based Linux distributions