CTRL+R adding percent sign to middle of line
3 views (last 30 days)
Show older comments
Hi,
I have encountered an issue with Matlab R2022b and R2023b (may occur on others as well). My issue with using Ctrl+R to comment some code. Occasionally, and this does not happen all the time, Ctrl+R will place the % sign in the middle of script line as opposed at the beginning. Here is an example (a is just a random matrix):
b = reshape( a, [], 1 );
then using ctrl+r gives
b % = reshape( a, [], 1 );
I think a couple details that may help recreate the issue are that in preferences I chose not to have tab insert spaces, the issue tends to occur on lines that are indented, and there is at least one tab between the output variable and the equal sign. The commenting issue may occur 1 out of every 10 lines.
Thanks
1 Comment
Saurabh
on 16 Dec 2024
I wasn't able to replicate the issue on my end. If possible, could you record a video demonstrating this unusual behavior?
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!