important security update:
remove options pythonPath
and formatterPath
bugfix: comments before multiline statement
add option to customize indentation of matrices/cells
bugfix: formatting of strings
add support for spmd
bugfix: default value addSpaces
- add option to customize wrapping of operators with spaces
- add option to switch of formatter for selected lines via comment
% formatter ignore N
bugfix: unary minus at start of line
feature: extend indent mode to classdef
feature: add support for block comments
bugfix: if
statement with attached parenthesis
- bugfix: semicolon after
end
- bugfix: add warning in case of mismatching
begin
andend
statements
bugfix: handle strings containing quotes
bugfix: handle empty files correctly
- bugfix: operator/assignment issue, e.g.,
+=
- feature: indentation modes (thanks to Arturo Mendoza Quispe for adding this feature)
bugfix: comments at end of line starting an if
/for
/... block
add support for inline try;catch;end block
bugfix: python path
bugfixes:
- fix formatting of expression clear
- indentation of multiline statements with comments
bugfix: comma-less vectors (again...)
bugfix: issue with comments containing quotes
performance: precompile regular expressions
bugfixes:
- brackets in strings and comments
- multiline array at beginning of line
features:
- option to set custom path for formatter
- support multiline cell arrays
bugfix: error with multiple spaces after for
/if
/etc.
bugfix: fix formatting issues with imports
add support for arguments and enumeration
features:
- option to set custom python path
- option to choose whether (for/if/...) blocks shall be wrapped with empty lines
bugfix: whitespaces (yet again)
bugfix: yet another attempt to fix all the spaces between expressions
bugfix: keep spaces between expressions
features:
- pipe python error to vs-code error message (credits to AlexanderLieret)
- add support for utf-8 (credits to wuyudi)
bugfixes:
- correct handling of non-comma-separated vectors and matrices
- correct treatment of identifiers with names containing 'end'
bugfix: correct formatting for strings containing quotes
bugfix: correct line break - again
bugfix: correct line break
bugfix: correct formatting of unary minus
bugfix: ignore ellipsis in comments
bugfix: remove additional spaces in rational numbers and scientific notation e.g 1/7 or 1.7e42
bugfix: correct formatting of identifiers ending on decimal
bugfix: exclude non-comma-separated vectors from formatting to prevent negative entries from being converted to subtractions
bugfix: correct indentation for multiline matrices
bugfix: undo changes from 2.4.2 because they lead to problems with other unicode-characters (e.g. greek letters)
bugfix: better support for chinese comments
feature: Add indentation after linebreak (...
)
feature: Add support for object oriented Matlab code
bugfix: support braces after control keyword e.g. if()
- bugfix: quoting of shell command
- bugfix: implement formatting of doublequote-strings
Remove trailing whitespaces at lineend
Call python script relative from extension.js -> Remove now obsolete setting path
Bugfix: add parfor
control sequence
Improve matrix formatting
-
Feature: Add better formatting for matrices
-
Bugfix: Remove unwanted newlines after block-introducing comment
Rewrite the formatter in an object oriented way to implement new features more easily.
Bugfix: whitespace after string
Feature: Add support for one-line control sequence (if, for, while)
Bugfix: Correct indenting of try-catch block
Bugfix: Don't break words into block-start-keywords
Change default formatter-path to it's default windows location
Bugfix: implement support for combined dot-operator + assignment (e.g. .+=)
Bugfix: implement support for more combined operators Thanks to davidxujiayang for finding this bug and providing a solution!
Bugfix: include last line when formatting Thanks to fasiha for finding the bug!
Bugfix: enable variable indentwidth for format selection
Add compatibility for python 3.6
New Features:
- format selection
- variable indent width → setting:
matlab-formatter.indentwidth
Bugfix: Removed a remaining debug output that corrupted the output file
Initial release of matlab-formatter