(可从https://github.com/ywx/FormatFortranIndentPlugin下载) How to change options for Format Fortran Indent Plugin ?

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

扫描二维码关注公众号,回复: 3170390 查看本文章

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


猜你喜欢

转载自blog.csdn.net/gocad/article/details/8779941