Microsoft/TypeScript

Provide Format Options for JSX/TSX End of Tag Placement

Open

#12,539 opened on 2016年11月28日

GitHub で見る
 (1 comment) (1 reaction) (0 assignees)TypeScript (6,726 forks)batch import
Domain: FormatterHelp WantedSuggestionVS Code Tracked

Repository metrics

Stars
 (48,455 stars)
PR merge metrics
 (平均マージ 6d 17h) (30d で 9 merged PRs)

説明

From https://github.com/Microsoft/vscode/issues/16018 @VanishingDante

For the following JSX/TSX code:

<div
    >
    <img
        />
</div>

The current formatting settings do nothing. There does not seem to be a way to control how the ending > is placed on lines.

We would like an additional formatting setting so that we can format the above code as:

<div>
    <img />
</div>

This formatting option would be helpful for elements with many attributes.

コントリビューターガイド