davidvarga / davidvarga/MBeautifier

Add option to run without opening the MATLAB editor

Open
#74 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
MATLAB
Stars
519
Forks
80
PR merge metrics
No merged PRs in 30d

Description

I use this as part of a pre-commit git hook and also sometimes in large batches of files, so it would be nice to have the option of passing in a filename and have the formatter run without opening the editor for performance reasons. A couple of possibilities for the calling syntax:

An optional parameter:
`MBeautify.formatFile('someFile.m', 'someFile.m', 'UseEditor', false);`

An optional positional argument:
`MBeautify.formatFile('someFile.m', 'someFile.m', '--no-editor');`

A new method:
`MBeautify.formatFileSilently('someFile.m', 'someFile.m');`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.