davidvarga / MBeautifier

MBeautifier is a MATLAB source code formatter, beautifier. It can be used directly in the MATLAB Editor and it is configurable.
GNU General Public License v3.0
490 stars 77 forks source link

feature: formatFile - Only close files that were opened #125

Open RodneyRichardson opened 9 months ago

RodneyRichardson commented 9 months ago

When running MBeautifier.formatFiles with editor=true (or MBeautifier.formatFile(file, file)), the file is always closed even if it was already open in the editor. I would prefer any files I currently have open in the editor to remain open.