davidvarga / davidvarga/MBeautifier

formatEditorSelection indents regions outside selected

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

Description

When using `MBeautify.formatEditorSelection()`, after formatting the selected text, [MBeautify.m#L227](https://github.com/davidvarga/MBeautifier/blob/1a57849e44662f56271dc0eefa746855698a719a/MBeautify.m#L227) then indents the entire editor page, rather than just the selection. I.e. the following code is called:
```
MBeautify.indentPage(currentEditorPage, configuration);
```

It would seem more appropriate to indent only the selected region.

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.