Code::Blocks IDE for Fortran
Code::Blocks is a free, cross platform Integrated Development Environment (IDE) oriented towards the C/C++ language. You can find more information at its home page (www.codeblocks.org).
I want to make Code::Blocks more useful for Fortran programmers. I have added some features which are not present in official Code::Blocks distribution. First of all, I am developing a plugin called FortranProject. Additionally I have added the support of some Fortran compilers and some more. With these addons the Code::Blocks can serve as a good Fortran IDE. Pre-built binaries available for Windows and Linux.
News
(19.12.2012)
C::B team released a new version of C::B, 12.11. While this version comes without FP plugin, it is possible to install it manually. A precompiled version of FP plugin for Windows or source code can be downloaded from Downloads page.
(28.10.2012)
C::B for Fortran IDE 1.0 is out. Just a few minor bugs were fixed since the RC1.
(15.09.2012)
A new release candidate is out. This time I switched a version number to 1.0rc1. Using ‘1.0’ I wanted to indicate, that C::B with FP is not in an ‘alpha’ stage, but rather a full-featured IDE. New in this RC1:
-
Part of the parsing work was uploaded to the secondary thread. A Fortran code now is parsed directly when an user is making changes in the editor. As a result the code-completion list is always kept updated. The Symbol browser is updated on ‘save’ only (as it was always).
-
Improved call-tips for generic procedures. The call-tip for every concrete implementation of the generic procedure is showed in a separate page (window). You can switch between the pages using Ctrl+Up and Ctrl+Down keyboard shortcuts (menu: Fortran->’Next call tip’ or ‘Prev call tip’) when such call-tip is showed. (look at screenshot bellow)
-
Added code-completion support for keywords from OpenMP and OpenACC. If you are typing after ‘!$omp’ or ‘!$acc’, CC list will include keywords from corresponding standard.
-
Added code-completion support for items from Fortran intrinsic modules: iso_c_binding, iso_fortran_env etc.
-
Implemented ‘Change case’ refactoring (Fortran->Cange case). Using it the user can change the character case for Fortran keywords and/or for other names in the code.
-
Added code-completion support for ‘Select type’ construct (Fortran 2003 feature).
-
Other useful improvements in core of C::B and FormatFortranIndent plugin.
Features
-
Editor with Fortran syntax highlighting (fixed and free form).
-
Compilation of Fortran project directly from IDE. FortranProject plugin should care about Fortran file dependencies. Alternatively you can use your supplied makefile.
-
Possibility to jump directly to the code line with an error (currently the support of gfortran, g95, Intel Fortran, Oracle Solaris Studio Fortran and PGI Fortran is implemented).
-
Symbols browser with defined program units (functions, subroutines, modules etc.) in your project.
-
Possibility to jump to code line with subroutine/function definition directly from editor (right click on the name and select "Jump to: 'name'") or from the symbols browser (double click on the name) or using menu 'Search->Jump to declaration'.
-
Program debugging using GNU GDB or IDB (Intel's debugger on Linux).
-
Completion of names when you type or when you press Ctrl+Space (you can change the key combinations in Editor's Settings). The support for subroutine/function names, the names of variables, the components of derived types and the type-bound procedures is implemented.
-
Call-tips with subroutine/function argument list. Appears automatically or when you press Ctrl+Shift+Space.
-
Appearance of tooltips when you hold mouse on variable or name of subroutine.
-
Jump back and forth again to the edited file or the marked line (use toolbar or Alt+arrow).
-
Possibility to generate a Makefile (Tools->Fortran->Genarate Makefile). This feature should generate a working makefile for the active target in simple cases. Or the generated makefile can be used as a draft in more sophisticated projects.
-
and more
Screenshots
License
Code::Blocks (and FortranProject plugin) is distributed at GPLv3.
Download
Installation
Just extract archive in your favored directory. To launch Code::Blocks run codeblocks.exe (on Win) or codeblocks_run.sh (on Linux). If you have another Code::Blocks distribution on your system you may want to start Code::Blocks as a portable app by executing startup script codeblocks_portable.bat (codeblocks_run_portable.sh). Code::Blocks saves all settings in installation directory if you launch program using codeblocks_portable.bat (codeblocks_run_portable.sh).
Prerequest
To be able to compile your Fortran files you should have an installed Fortran compiler (gfortran, g95 or another one). Windows users should install MinGW on a system first. I would suggest to install MinGW from tdm-gcc.tdragon.net. If you are going to use gfortran, don't forget to mark it during installation. It may be useful to read gfortran-wiki page. You may find useful to look at short tutorial posted to CBFortran Google group: how to setup Fortran with C::B on Windows.
Linux users should have 'gtk2' and 'xterm' installed on their system. Linux versions were tested on several different distributions.
Setup of compiler's installation directory
You should read Notes page.
User manual
You can download the Code::Blocks user manual from www.codeblocks.org/user-manual .
Development
Project has page on Google Code. There you can report bugs, send your patches, download latest code from svn.
About me
My name is Darius Markauskas. I develop for this project on my spare time.
You can read here about my main work.
Have questions, suggestions? Found a bug?
Write me to:
This email address is being protected from spambots. You need JavaScript enabled to view it.