CTRL+R adding percent sign to middle of line

3 visualizaciones (últimos 30 días)
Ryan Fogle
Ryan Fogle el 13 de Dic. de 2024
Comentada: Saurabh el 16 de Dic. de 2024
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 comentario
Saurabh
Saurabh el 16 de Dic. de 2024
I wasn't able to replicate the issue on my end. If possible, could you record a video demonstrating this unusual behavior?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by