Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React/tsx/jsx alignment behavior [need more info | feature request] #16018

Closed
Shuumatsu opened this issue Nov 24, 2016 · 2 comments
Closed

React/tsx/jsx alignment behavior [need more info | feature request] #16018

Shuumatsu opened this issue Nov 24, 2016 · 2 comments
Assignees
Labels
formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@Shuumatsu
Copy link

  • VSCode Version: 1.7.2
  • OS Version: 10.12.1

I want tag closing on its own line and aligned with opening of tag if the tag is self closing and expand to multiline

with vscode's default autoformat

      <div
        role='textarea'
        style={{ border: '1px solid black' }}
        >
        <Editor
          editorState={editorState}
          onChange={this.onChange}
          handleKeyCommand={this.handleKeyCommand}
          />
      </div >

and what I want is below

      <div
        role='textarea'
        style={{ border: '1px solid black' }} >
        <Editor
          editorState={editorState}
          onChange={this.onChange}
          handleKeyCommand={this.handleKeyCommand}
        />
      </div >
@mjbvz mjbvz added formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues labels Nov 28, 2016
@mjbvz mjbvz added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Nov 28, 2016
@mjbvz
Copy link
Contributor

mjbvz commented Nov 28, 2016

Thanks. We use TypeScript for formatting, so I've opened a bug against them to track this: microsoft/TypeScript#12539

@waderyan
Copy link

Closing as this issue is tracked in TS's repo.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants