Skip to content

Automatically continue doc comments on new line #310

@djrenren

Description

@djrenren

When writing multiline doc comments it would be nice to have the comments already inserted like so:

(cursor position is denoted by the <|>)

-- | Multiplies a number by two<|>
timesTwo x = x * 2

Then I would press enter and get:

-- | Multiplies a number by two
--  <|>
timesTwo x = x * 2

Ideally that cursor would be lined up with the first letter in the starting line.

P.S. I'm loving this extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementAn enhancement to an already existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions