• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems about the keybinding in Xcode and the standard namespace of Apple Clang
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems about the keybinding in Xcode and the standard namespace of Apple Clang


  • Subject: Re: Problems about the keybinding in Xcode and the standard namespace of Apple Clang
  • From: Dave <email@hidden>
  • Date: Thu, 12 May 2016 13:15:05 +0100

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Problems about the keybinding in Xcode and the standard namespace of Apple Clang
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: [SOLVED] Custom iOS framework links fine for Debug Config, but not for Release
  • Next by Date: Re: Problems about the keybinding in Xcode and the standard namespace of Apple Clang
  • Previous by thread: Re: [SOLVED] Custom iOS framework links fine for Debug Config, but not for Release
  • Next by thread: Re: Problems about the keybinding in Xcode and the standard namespace of Apple Clang
  • Index(es):
    • Date
    • Thread