To comment a selected portion of your code, where do you go?
Very basic question, i know you can do it with other editors, i just dont know where that option is on Xcode.
Im writing in c++ if that matters.
To comment a selected portion of your code, where do you go?
Very basic question, i know you can do it with other editors, i just dont know where that option is on Xcode.
Im writing in c++ if that matters.
you can use the // for single lines and /* */ for multiple lines.
So if I had the code
PHP:
#include <iostream>
int main()
{
//my program code goes here
std::cout << "Hello world";
/* I can have multiple paragraphs here
as well see */
return 0;
}
I know how to use that, but im wondering if there is a way for me to just highlight certain lines and go to the 'comment' button, and that will place the // infront of each individual line.
Emacs has that capability, i would hope Xcode does also...