Skip to content

✨ Comment out highlighted code #38

Description

@jenslys

Description

/ should allows users to toggle between commented and uncommented for the line the cursor is currently on when you press /.

If a selection is made on a single line, a range comment should be used.

Comment placement styles…

/* Xcode - At leading end of leading whitespace */
func hi() {
    print("Hi")
//    print("Hi")
}

/* Android Studio - Inset at leading end of leading whitespace */
func hi() {
    print("Hi")
//  print("Hi")
}

/* VS Code - At trailing end of leading whitespace */
func hi() {
    print("Hi")
    // print("Hi")
}

/* Inset at trailing end of leading whitespace */
func hi() {
    print("Hi")
 // print("Hi")
}

We should allow for all three styles via a Setting:

Comment Placement:

  • At leading end of leading whitespace
  • Inset at leading end of leading whitespace
  • At trailing end of leading whitespace
  • Inset at trailing end of leading whitespace

Describe the solution you'd like

Ability to comment out code by highlighting some code and pressing: /

Additional context

hightlight

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions