Skip to content

Add function to delete inline comment #332

Open
@jerpint

Description

@jerpint

What would be the best way to delete an inline comment?

For example, say I have some code
foo += 2

I want to add a comment to it, so I use <leader> + cA to get

foo += 2 # Add 2 to foo

I then realize my comment is obvious, and should be removed. I would like a shortcut to delete the comment from anywhere on the line, i.e. <leader> + cD to retrieve

foo += 2

without a trailing whitespace.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions