Ran*_*rns 1 xcode comments objective-c
我知道你可以注释掉一整段代码,如下所示:
/*
line of code
line of code
line of code
*/
Run Code Online (Sandbox Code Playgroud)
但是如果你在试图评论的代码中已经有一个/*...*/部分,则注释块的*/end将关闭我试图创建的"更大"注释块.
例:
/* wanting to comment this big section out
line of code
line of code
line of code
line of code
line of code
line of code
/* this section was already commented out before
line of code
line of code
line of code
*/ this section was already commented out before
line of code
line of code
line of code
line of code
line of code
*/ this last part doesn't get commented out, because the comment stops at previous */
Run Code Online (Sandbox Code Playgroud)
显然,这是不是一个巨大的大问题,它不是从得到一个应用程序正常工作阻止我,但我只是想知道是否有可能是注释掉的代码较大部分的一些方法,即使目前已经有评论该代码中的块.