Is there a shortcut to make a block comment in Xcode?

前端 未结 16 1196
后悔当初
后悔当初 2020-11-30 18:57

I\'m writing ANSI-compatible C code, and hence I can\'t use the line (//) comment. I\'m using Xcode. In Sublime Text and Eclipse, and I think most other IDEs, t

16条回答
  •  天命终不由人
    2020-11-30 19:20

    There is now an Xcode plugin that allows this: CComment.

    The easiest way to install this is to use the amazing Alcatraz plugin manager for Xcode.

    EDIT Apple has sadly (and wrongly, IMHO) retired the old plugin model with Xcode 8. The new plugin system is quite limited, but should allow development of a plugin like this again. For anyone interested in doing this, watch WWDC 2016 session 414. Also, please file radars for API for plugins you'd like to write or see.

提交回复
热议问题