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

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... 菜单项,

Plugins Menu -> Manage plugins...

进入 Manage plugins 对话框。

Manage plugins Dialog

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

Selec plugin to install Dialog

选择打开进行安装,安装完成后关闭 Manage plugins 对话框。现在你就可以开始使用 Format Fortran Indent Plugin for Code::Blocks 。

任意打开一个 Fortran Project 中的或是单独打开一个 Fortran Free Format 源文件。

Fortran Free Format Source File

你可以在以下地方找到可用的 Format Fortran Indent 菜单项:

  • 鼠标右键快捷菜单如上图
  • Fortran 菜单中

Fortran Menu

  • Plugins 菜单中

Plugins Menu

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

Menu Projects Management file

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

Format Fortran Indent result

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

Select

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

Select result

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

Menu Format Fortran Indent this project


How to change options for Format Fortran Indent Plugin ?

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值