Microsoft/TypeScript

Provide Format Options for JSX/TSX End of Tag Placement

Open

#12,539 创建于 2016年11月28日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)TypeScript (6,726 fork)batch import
Domain: FormatterHelp WantedSuggestionVS Code Tracked

仓库指标

Star
 (48,455 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 9 个 PR)

描述

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.

贡献者指南