Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

✨ Comment Styles

未關閉
#260 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@tom-ludwig 已經在處理了。

開始於 2024年8月20日。

評估

這個 Issue 還沒有評估資料。

描述

enhancement wontfix
Description

Comment characters currently start before the first visible character. In Xcode they are instead of at the beginning of a line. Users may prefer one commenting style over the other. We should provide a setting to toggle between these two commenting styles.

Setting Option

Name: Comment style

Options:

  • At beginning of line (default)
  • After leading whitespace

[!NOTE]
The current behavior is "After leading whitespace" but there is no space after the comment characters. We should include this space. If multiple lines are commented out, comments should be at the same tab level.

At beginning of line
Single line
func add(a, b) {
    func result(a, b) {
//        return a + b
    }
    return result(a, b)
}
Multi line
func add(a, b) {
//    func result(a, b) {
//        return a + b
//    }
    return result(a, b)
}
After leading whitespace
Single line
func add(a, b) {
    func result(a, b) {
        // return a + b
    }
    return result(a, b)
}
Multi line
func add(a, b) {
    // func result(a, b) {
    //     return a + b
    // }
    return result(a, b)
}
主要語言
Swift
星號
720
分支
162
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CodeEditApp/CodeEditSourceEditor 的其他 Issue

查看 CodeEditApp/CodeEditSourceEditor 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。