Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

✨ Comment Styles

Open
#260 0 comments 0 reactions 1 assignee View on GitHub

@tom-ludwig is already working on this.

Since Aug 20, 2024.

Assessment

This issue has not been assessed yet.

Description

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)
}
Dominant language
Swift
Stars
720
Forks
162
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeEditApp/CodeEditSourceEditor

All issues in CodeEditApp/CodeEditSourceEditor

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.