miss_hit-matlab-styler

버전 1.0.1 (3.39 KB) 작성자: Ze-Zheng Wu
A MATLAB Class Wrapper for MISS_HIT (Currently only mh_style is supported)
다운로드 수: 10
업데이트 날짜: 2021/11/26

miss_hit-matlab-styler

View miss_hit-matlab-styler on File Exchange

A MATLAB Class Wrapper for MISS_HIT (Currently only mh_style is supported)

demo

Install

Usage

The usage of this wrapper is rather simple. Please refer to MISS_HIT Style Checker for a detailed documentation regarding the styler.

Default

Execute MISS_HIT.mh_style() or MISS_HIT.mh_style in MATLAB command window and the code in the active editor will be automatically formatted (but not saved):

% in matlab command window
MISS_HIT.mh_style()
% or
MISS_HIT.mh_style

miss_hit.cfg or .miss_hit is regarded as a valid configuration in your project as described in Setting up configuration in your project.

Run with Options

You can pass CLI arguments as a character array to the function:

% in matlab command window
MISS_HIT.mh_style('--tab_width 2 --ignore-config --fix')

When nothing is passed to the function (in default case), --fix is automatically added. To explicitly discard all options, run MISS_HIT.mh_style('').

A detailed list of valid options can be acquired in MATLAB command window:

% in matlab command window
MISS_HIT.mh_style('-h')

or in shell:

# in shell
mh_style -h

Add as Shortcuts

You can add MISS_HIT.mh_style to your favorite commands and pin it on the quick access tool bar. For convenience, I wrote a simple function to do this for you:

% in matlab command window
MISS_HIT.add_to_quick_access(@MISS_HIT.mh_style)

And then you can format your code by simply clicking the icon on the upright corner in the tool bar or use the keyboard shortcut alt + 1.

Acknowledgement

인용 양식

Ze-Zheng Wu (2024). miss_hit-matlab-styler (https://github.com/Sec-ant/miss_hit-matlab-styler/releases/tag/v1.0.1), GitHub. 검색 날짜: .

Schanda, Florian, et al. Florianschanda/miss_hit: Release 0.9.30. Zenodo, 2021, doi:10.5281/ZENODO.3967056.

양식 더 보기
MATLAB 릴리스 호환 정보
개발 환경: R2021b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.1

See release notes for this release on GitHub: https://github.com/Sec-ant/miss_hit-matlab-styler/releases/tag/v1.0.1

1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.