SMARTINDENT

SMARTINDENT customizes the indentation of m files.
ダウンロード: 2K
更新 2002/7/24

ライセンスの表示

SMARTINDENT is a tool to customize the indentation of your m files without going manually through the whole process.

SMARTINDENT fully mimics the behaviour of the MATLAB editor's smartindent command:

- it allows you to choose the number of spaces/tabs used for the indentation;

- it can handle nested and partially nested flow control commands.

SMARTINDENT does overwrite the files you want it
to process, therefore:

- when invoked from the command line, SMARTINDENT warn the users to back up first their files;

- when invoked from within another function or script, no warnings are issued, thus allowing for off-line multiple calls.

To process all files under a given folder(s), call SMARTINDENT with FUF,
e.g., to process all m files under folders ...\Documents and ...\MyFcns, type

smartindent(fuf({'...\Documents\*.m','...\MyFcns\*.m'}))

You can download FUF from the Matlab File Exchange under the category DEVELOPMENT ENVIRONMENT: the submission name is "Files Under Folders".

引用

Francesco di Pierro (2024). SMARTINDENT (https://www.mathworks.com/matlabcentral/fileexchange/2038-smartindent), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R12
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersEnvironment and Settings についてさらに検索
謝辞

ヒントを得たファイル: Files Under Folders (fuf)

ヒントを与えたファイル: SIGNFILE

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0