Skip to content

Auto-insert /// for additional comment lines #147

Closed

Description

@DanTup

If the user presses enter on the end of a line starting with /// we should automatically insert the same on the next line (include a space if they did, too).

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Aug 29, 2016
  2. added this to the milestone on Aug 29, 2016
  3. DanTup commented on Sep 4, 2016

    @DanTup
    MemberAuthor

    Unable to make this work; posted in Code repo: microsoft/vscode#11514

  4. DanTup commented on Sep 5, 2016

    @DanTup
    MemberAuthor

    Needs to be done in code:

    languages.setLanguageConfiguration(modeId, {
    ...
        onEnterRules: [
            {
                beforeText: /^\/\/\//,
                action: { indentAction: IndentAction.None, appendText: '/// ' }
            }
        ]
    ...
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions