Defines how many empty lines should follow the section comments ( %% ). SectionTrailingNewlineCount: Integer value.For any number "X" bigger or equal to zero: section comments will be preceded exactly by X empty lines. Negative values mean no special formatting is needed (the final format is defined by the input and the MaximalNewLines rule). Defines how many empty lines should precede the section comments ( %% ). SectionPrecedingNewlineCount: Integer value.This rule can be used to specify the maximal number of maximal continuous empty lines. MBeautifier will remove continuous empty lines. The current list of special rules: Special rules regarding new lines These rules are basically switches for certain functionalities of MBeautifier. Note: Not all of the keywords are listed - only the ones where controlling padding makes sense. The RightPadding node stores the expected right padding white space amount: the keyword should be preceded by one white space character. The example above shows the rule for the keyword "properties". Operator padding rulesĮach OperatorPaddingRule represents the formatting rules for one single operator and consists of a key, the string that should be replaced and a string that should be used for the replacement. Configuration rulesĬurrently three types of configuration rules are implemented: Operator padding rule, Keyword padding rule and Special rule. The configuration can be modified by editing the MBeautifier\resources\settings\MBeaut圜onfigurationRules.xml file. Simply add the root directory to the MATLAB path. While everything above is configurable in a single XML file.Formats the current page of the MATLAB Editor or only a selection in the MATLAB Editor or file(s).Insert missing continuous symbol line in matrix and cell array initializations.Inserting missing element separators (commas) in matrix and cell array initializations.Removal/addition of continuous empty lines.Indentation using the Smart Indent functionality of the MATLAB Editor Configurable indentation character and level.Padding operators and keywords with white spaces.MBeautifier is a lightweight M-Script based MATLAB source code formatter usable directly in the MATLAB Editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |