XCode警告:在块注释中的“/ *” [英] XCode Warning: "/* within block comment"

查看:462
本文介绍了XCode警告:在块注释中的“/ *”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常想通过以下方式对其进行评论来临时启用和禁用代码部分:

I really like to temporary enable and disable code parts by commenting them this way:

/*
some code
/**/

(介意


/ ** /

/**/

而不是


* /

*/

最后)

然而,XCode一直给我警告:

However, XCode keeps giving me the warning:

/* within block comment

有没有办法自定义禁用特定警告?

Is there any way to "custom-disable" specific warnings?

为什么?我会告诉你原因:因为我可以轻松地只用一个字符进出,而不必向下滚动块来取* / in和out。

WHY? I will tell you why: Because I can easily take it in and out with only one character, without having to scroll down the block to take the "*/ in and out.

推荐答案

我找到了一个非常好的替代品:

I found a very nice alternative to:

/*    
some code
/**/

你可以使用这个变种:

/*
some code
//*/

在没有任何Xcode警告的情况下实现相同的目标!

to achieve the same goal without any Xcode warnings!

这篇关于XCode警告:在块注释中的“/ *”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆