簡體   English   中英

如何在Xcode中隱藏代碼文檔/注釋?

[英]How to hide code documentation/comment in Xcode?

我正在迅速寫Xcode,同時閱讀別人的代碼。 你知道swift沒有頭文件,所以代碼文檔就在代碼之上,有時讓我討厭。 所以我的問題是'有什么神奇的方法可以隱藏/顯示文檔/評論嗎?

/// I'm talking about hiding this..
///
/// - Parameter name: name
/// - Returns: return
func someMethod(param name:String) -> String {
    return ""
}

編輯器 - >代碼折疊 - >折疊注釋塊

捷徑:

  • 折疊:Shift + Control + Command + Left
  • 展開:Shift + Control + Command + right

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM