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
483 stars 77 forks source link

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

Open RodneyRichardson opened 8 months ago

RodneyRichardson commented 8 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.