This extension provides support for editing MATLAB® code in Visual Studio® Code and includes features such as syntax highlighting, code analysis, navigation support, and more.
Describe the bug
When block comments are toggled using Shift+Alt+A, existing block comments are never removed, only added, effectively nesting the block comments.
To Reproduce
Steps to reproduce the behavior:
In a MATLAB file, type x = 1
Select x = 1
Type Shift+Alt+A multiple times
This will result in a structure like the following:
%{
%{
x = 3
%}
%}
Expected behavior
The first time block comments are toggled, it should insert the block comment. The second time it is toggled, the existing block comment should be removed.
Describe the bug When block comments are toggled using Shift+Alt+A, existing block comments are never removed, only added, effectively nesting the block comments.
To Reproduce Steps to reproduce the behavior:
x = 1
x = 1
This will result in a structure like the following:
Expected behavior The first time block comments are toggled, it should insert the block comment. The second time it is toggled, the existing block comment should be removed.
Useful Information