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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章