Hi,

> The first question is whether there is a keybinding for commenting some 
> region of C/C++ codes in Xcode. I can do the same thing in GNU Emacs quickly 
> by hit the keystrokes M-;.  I hope I can do it in Xcode. Any suggestion?

For commenting some region of code, do you mean you want to comment in/out a 
block of code in a source file?

If so, then the answer is yes, but it’s already built-in:

Select the lines you wish to comment out and Command+/ this will add or remove 
two “//“ characters to the beginning of each line.

Something that might also be of interest is Command+} and Command+{ which 
indent +/- a block of code that has previously selected.

As for math questions, you’d be better off posting to the Cocoa List as this 
list of really for the use of the XCode application.

Hope this helps.

All the Best
Dave




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to