How to Use the Format Fortran Indent Plugin for Code::Blocks ?
首先,安装已经编译好的 Format Fortran Indent Plugin。
下载对应版本的 Format_Fortran_Indent_Plugin.cbplugin。(可从https://github.com/ywx/FormatFortranIndentPlugin下载)
For Code::Blocks Release 12.11 rev 8629 for Windows x86
For Code::Blocks for Fortran v1.0 rev 8455 for Windows x86
For Code::Blocks svn 8982 for Windows x86
For Code::Blocks Release 12.11 rev 8629 for Linux CentOS 6 i686
For Code::Blocks Release 12.11 rev 8629 for Linux CentOS 6 x86_64
从 Code::Blocks 的 Plugins 菜单中选择 Manage_plugins... 菜单项,

进入 Manage plugins 对话框。

点击 Install New 按钮,定位下载的 Format_Fortran_Indent_Plugin.cbplugin。

选择打开进行安装,安装完成后关闭 Manage plugins 对话框。现在你就可以开始使用 Format Fortran Indent Plugin for Code::Blocks 。
任意打开一个 Fortran Project 中的或是单独打开一个 Fortran Free Format 源文件。

你可以在以下地方找到可用的 Format Fortran Indent 菜单项:
- 鼠标右键快捷菜单如上图
- Fortran 菜单中

- Plugins 菜单中

- Projects Management 中的单击对应的 Fortran 源文件

执行 Format Fortran Indent,你会得到以下规整缩进的结果。

当然,你也可以只对选中的局部代码进行缩进整理。

执行 Format Fortran Indent,你会得到以下规整缩进的结果。

你也可以,对项目中的所有 Fortran 源文件进行批处理。


本文介绍如何安装及使用Format Fortran Indent插件,该插件用于Code::Blocks IDE中的Fortran代码格式化。文章提供了不同操作系统下插件的下载链接,并指导用户通过插件菜单进行安装及配置。

被折叠的 条评论
为什么被折叠?



