我知道你可以註釋掉的代碼一整節,像這樣:有沒有辦法在已經評論的部分上使用塊註釋?
/*
line of code
line of code
line of code
*/
但是,如果你已經在代碼中的/ * ... * /節你想發表評論,那麼* /註釋塊的結尾將關閉我正在創建的「更大」註釋塊。
例子:
/* 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 */
顯然,這不是一個巨大的大問題,它不是從得到一個應用程序正常工作阻止我,但我只是想知道是否有可能是評論的一些方法即使在該代碼中已經有註釋塊,也可以輸出大部分代碼。
真是一個偉大的捷徑!謝謝! =) – RanLearns