Hai …
am using MAC OS … Tell me the shortcut to comment the line in unity MonoDevelop editor .
I know it’s an old topic, but I couldn’t stand these answers…People please, he asked the Shortcut to commenting, not how to comment…
The shortcut on windows is ctrl+alt+C
the SHORTCUT is Cmd + /
// A Comment on One line
/* A Comment
That covers multiple lines until a matching
close comment set is found. Like this one here → */
//You can even comment out code by adding the comment
syntax before or around the code
you do not want to be compiled. Like so…
// myGameObject.DoStuff(nothing);
OR
if (thisCode == "sucks"){
Debug.Log("It broke again!");
myCode.badFunction();
}
… can become…
/*
if (thisCode == "sucks"){
Debug.Log("It broke again!");
myCode.badFunction();
}
*/
…which will disable all code between the comments tags.
If you are looking to get some good information about edubirdie, you need to read the latest by Edubirdie review right now. Trust me, this is something that you don’t want to miss out on. You’ll be very sad, otherwise.
The way to comment a line is depending on the langage you chose.
However “//” added at the beginning of your line often do the job.
Two forward slashes.