CTRL+R adding percent sign to middle of line

조회 수: 3 (최근 30일)
Ryan Fogle
Ryan Fogle 2024년 12월 13일
댓글: Saurabh 2024년 12월 16일
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
Saurabh
Saurabh 2024년 12월 16일
I wasn't able to replicate the issue on my end. If possible, could you record a video demonstrating this unusual behavior?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by