Skip to content

Block comments don't get created as a "block" and don't continue on new lines #9480

Closed
@josh-endries

Description

@josh-endries

TypeScript Version: 1.8.30

Code

/*

Or:

/**

Expected behavior:

/*
 * <cursor>
 */

The /** variant works correctly here, but not with the next step.

And, after pressing Enter:

/*
 *
 * <cursor>
 */

Actual behavior:

/*
<cursor>

(Your template has no "description" section, which seems valuable. I'm adding one. Here it comes!)

Description:

I'm not really sure if this belongs here or maybe here, but this doesn't work in VS "14.0.25123.00 Update 2" with TS or TSX or JSX files. It's impressively annoying. It does work with JS.

When initially adding a block comment, it doesn't fill in the "blank" line with just a <indent> * prefix (note the space), and upon pressing enter, it doesn't insert the <indent> * for the new line as a continuation of the comment.

The "doc" code block format (/**) starts out correctly, adding a single * line and closing */ line and placing the cursor on the single * line, however when adding a new line it doesn't prefix the line with <indent> * as I would expect. Virtually every other editor I've used (that I can remember) does block comments this way, so I don't think my expectation is unwarranted, but maybe so...

Metadata

Metadata

Assignees

No one assigned

    Labels

    In DiscussionNot yet reached consensusSuggestionAn idea for TypeScriptVisual StudioIntegration with Visual Studio

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions