Microsoft/TypeScript

Provide Format Options for JSX/TSX End of Tag Placement

Aberta

#12.539 aberto em 28 de nov. de 2016

 (1 comentário) (1 reação) (0 responsável)TypeScript (13.395 forks)batch import
Domain: FormatterHelp WantedSuggestionVS Code Tracked

Métricas do repositório

Stars
 (108.860 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador