Skip to content

Automatically add -- when pressing enter in a comment #279

Open
@sir4ur0n

Description

@sir4ur0n

A minor but nice feature I would like to propose is to automatically add -- on the new line when pressing "enter" in a comment/documentation.

Example (cursor position represented by []) below.

Current behavior

-- | Somme doc[]
foo = "hello world"

Press enter

-- | Somme doc
[]
foo = "hello world"

Proposed behavior

-- | Somme doc[]
foo = "hello world"

Press enter

-- | Somme doc
-- []
foo = "hello world"

I think this default behavior makes much more sense for developers.

To be discussed: should we do the same when in a regular comment? I'd say "no" but I am not strongly opinionated on this one.

Cheers

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