How to do group commenting without commenting each line in Matlab?

前端 未结 5 1226
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-31 07:52

How can I comment a group of lines without commenting each line?

ie like \'c\'

/*
printf(\"hello\");
printf(\"there\");
*/

in Matla

5条回答
  •  情歌与酒
    2020-12-31 07:59

    Or just select group of lines you want to comment then use keystroke 'Ctrl+/(forward slash)' and voila, it will comment the selected block's each line with % as one would do individually. To undo I tried but don't know what key stroke can work, so anyone please...

提交回复
热议问题