您的位置:首页 > 其它

How to Use the Format Fortran Indent Plugin for Code::Blocks ?

2013-04-09 21:13 686 查看
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

https://github.com/ywx/FormatFortranIndentPlugin/blob/cbRelease/Format_Fortran_Indent_Plugin.cbplugin

For Code::Blocks for Fortran v1.0 rev 8455 for Windows x86

https://github.com/ywx/FormatFortranIndentPlugin/blob/cbFortran/Format_Fortran_Indent_Plugin.cbplugin

For Code::Blocks svn 8982 for Windows x86

https://github.com/ywx/FormatFortranIndentPlugin/blob/cbNightlyBuild/Format_Fortran_Indent_Plugin.cbplugin

For Code::Blocks Release 12.11 rev 8629 for Linux CentOS 6 i686

https://github.com/ywx/FormatFortranIndentPlugin/blob/cbReleaseCentOS-i686/Format_Fortran_Indent_Plugin.cbplugin

For Code::Blocks Release 12.11 rev 8629 for Linux CentOS 6 x86_64

https://github.com/ywx/FormatFortranIndentPlugin/blob/cbReleaseCentOS-x86_64/Format_Fortran_Indent_Plugin.cbplugin

从 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 源文件进行批处理。



How to change options for Format Fortran Indent Plugin ?

https://github.com/ywx/FormatFortranIndentPlugin/wiki/HowtoChangeOptions-zh

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: