CTRL+R adding percent sign to middle of line

4 vues (au cours des 30 derniers jours)
Ryan Fogle
Ryan Fogle le 13 Déc 2024
Commenté : Saurabh le 16 Déc 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 commentaire
Saurabh
Saurabh le 16 Déc 2024
I wasn't able to replicate the issue on my end. If possible, could you record a video demonstrating this unusual behavior?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by