Closing > in new line











up vote
0
down vote

favorite












I have problem with '>' in tags. I got:



<label
class="custom-control-label"
for="building{{building.Id}}"
>
{{ building.City }}, {{ building.Name }}
</label>


How to make label starting tag '>' in the same line as last attribute? I use Prettier, but I neither couldn't find solution in their config nor in code settings.



<label
class="custom-control-label"
for="building{{building.Id}}">
{{ building.City }}, {{ building.Name }}
</label>









share|improve this question


























    up vote
    0
    down vote

    favorite












    I have problem with '>' in tags. I got:



    <label
    class="custom-control-label"
    for="building{{building.Id}}"
    >
    {{ building.City }}, {{ building.Name }}
    </label>


    How to make label starting tag '>' in the same line as last attribute? I use Prettier, but I neither couldn't find solution in their config nor in code settings.



    <label
    class="custom-control-label"
    for="building{{building.Id}}">
    {{ building.City }}, {{ building.Name }}
    </label>









    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have problem with '>' in tags. I got:



      <label
      class="custom-control-label"
      for="building{{building.Id}}"
      >
      {{ building.City }}, {{ building.Name }}
      </label>


      How to make label starting tag '>' in the same line as last attribute? I use Prettier, but I neither couldn't find solution in their config nor in code settings.



      <label
      class="custom-control-label"
      for="building{{building.Id}}">
      {{ building.City }}, {{ building.Name }}
      </label>









      share|improve this question













      I have problem with '>' in tags. I got:



      <label
      class="custom-control-label"
      for="building{{building.Id}}"
      >
      {{ building.City }}, {{ building.Name }}
      </label>


      How to make label starting tag '>' in the same line as last attribute? I use Prettier, but I neither couldn't find solution in their config nor in code settings.



      <label
      class="custom-control-label"
      for="building{{building.Id}}">
      {{ building.City }}, {{ building.Name }}
      </label>






      visual-studio-code prettier visual-studio-code-extension






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 at 0:39









      Mieszczańczyk S.

      9317




      9317
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          That setting in prettier is called jsxBracketSameLine and needs to be set to true



          Documentation



          https://prettier.io/docs/en/options.html#jsx-brackets






          share|improve this answer





















          • I did it and it is not working.
            – Mieszczańczyk S.
            Nov 19 at 7:57










          • How are you setting your configuration? Are other rules working in the same configuration?
            – AnonymousSB
            Nov 19 at 7:58












          • Yes, I also have: Jsx Single Quote as true and it is working. I use VS Code so in settings I tick proper option. :)
            – Mieszczańczyk S.
            Nov 19 at 8:01










          • Have you looked at this documentation on setting configs? marketplace.visualstudio.com/….
            – AnonymousSB
            Nov 19 at 8:02












          • Yes, I made even file .prettierrc with "jsxBracketSameLine": true and it's not working. I got this file in folder .vscode
            – Mieszczańczyk S.
            Nov 19 at 11:01











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53366923%2fclosing-in-new-line%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          That setting in prettier is called jsxBracketSameLine and needs to be set to true



          Documentation



          https://prettier.io/docs/en/options.html#jsx-brackets






          share|improve this answer





















          • I did it and it is not working.
            – Mieszczańczyk S.
            Nov 19 at 7:57










          • How are you setting your configuration? Are other rules working in the same configuration?
            – AnonymousSB
            Nov 19 at 7:58












          • Yes, I also have: Jsx Single Quote as true and it is working. I use VS Code so in settings I tick proper option. :)
            – Mieszczańczyk S.
            Nov 19 at 8:01










          • Have you looked at this documentation on setting configs? marketplace.visualstudio.com/….
            – AnonymousSB
            Nov 19 at 8:02












          • Yes, I made even file .prettierrc with "jsxBracketSameLine": true and it's not working. I got this file in folder .vscode
            – Mieszczańczyk S.
            Nov 19 at 11:01















          up vote
          1
          down vote













          That setting in prettier is called jsxBracketSameLine and needs to be set to true



          Documentation



          https://prettier.io/docs/en/options.html#jsx-brackets






          share|improve this answer





















          • I did it and it is not working.
            – Mieszczańczyk S.
            Nov 19 at 7:57










          • How are you setting your configuration? Are other rules working in the same configuration?
            – AnonymousSB
            Nov 19 at 7:58












          • Yes, I also have: Jsx Single Quote as true and it is working. I use VS Code so in settings I tick proper option. :)
            – Mieszczańczyk S.
            Nov 19 at 8:01










          • Have you looked at this documentation on setting configs? marketplace.visualstudio.com/….
            – AnonymousSB
            Nov 19 at 8:02












          • Yes, I made even file .prettierrc with "jsxBracketSameLine": true and it's not working. I got this file in folder .vscode
            – Mieszczańczyk S.
            Nov 19 at 11:01













          up vote
          1
          down vote










          up vote
          1
          down vote









          That setting in prettier is called jsxBracketSameLine and needs to be set to true



          Documentation



          https://prettier.io/docs/en/options.html#jsx-brackets






          share|improve this answer












          That setting in prettier is called jsxBracketSameLine and needs to be set to true



          Documentation



          https://prettier.io/docs/en/options.html#jsx-brackets







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 19 at 0:48









          AnonymousSB

          83117




          83117












          • I did it and it is not working.
            – Mieszczańczyk S.
            Nov 19 at 7:57










          • How are you setting your configuration? Are other rules working in the same configuration?
            – AnonymousSB
            Nov 19 at 7:58












          • Yes, I also have: Jsx Single Quote as true and it is working. I use VS Code so in settings I tick proper option. :)
            – Mieszczańczyk S.
            Nov 19 at 8:01










          • Have you looked at this documentation on setting configs? marketplace.visualstudio.com/….
            – AnonymousSB
            Nov 19 at 8:02












          • Yes, I made even file .prettierrc with "jsxBracketSameLine": true and it's not working. I got this file in folder .vscode
            – Mieszczańczyk S.
            Nov 19 at 11:01


















          • I did it and it is not working.
            – Mieszczańczyk S.
            Nov 19 at 7:57










          • How are you setting your configuration? Are other rules working in the same configuration?
            – AnonymousSB
            Nov 19 at 7:58












          • Yes, I also have: Jsx Single Quote as true and it is working. I use VS Code so in settings I tick proper option. :)
            – Mieszczańczyk S.
            Nov 19 at 8:01










          • Have you looked at this documentation on setting configs? marketplace.visualstudio.com/….
            – AnonymousSB
            Nov 19 at 8:02












          • Yes, I made even file .prettierrc with "jsxBracketSameLine": true and it's not working. I got this file in folder .vscode
            – Mieszczańczyk S.
            Nov 19 at 11:01
















          I did it and it is not working.
          – Mieszczańczyk S.
          Nov 19 at 7:57




          I did it and it is not working.
          – Mieszczańczyk S.
          Nov 19 at 7:57












          How are you setting your configuration? Are other rules working in the same configuration?
          – AnonymousSB
          Nov 19 at 7:58






          How are you setting your configuration? Are other rules working in the same configuration?
          – AnonymousSB
          Nov 19 at 7:58














          Yes, I also have: Jsx Single Quote as true and it is working. I use VS Code so in settings I tick proper option. :)
          – Mieszczańczyk S.
          Nov 19 at 8:01




          Yes, I also have: Jsx Single Quote as true and it is working. I use VS Code so in settings I tick proper option. :)
          – Mieszczańczyk S.
          Nov 19 at 8:01












          Have you looked at this documentation on setting configs? marketplace.visualstudio.com/….
          – AnonymousSB
          Nov 19 at 8:02






          Have you looked at this documentation on setting configs? marketplace.visualstudio.com/….
          – AnonymousSB
          Nov 19 at 8:02














          Yes, I made even file .prettierrc with "jsxBracketSameLine": true and it's not working. I got this file in folder .vscode
          – Mieszczańczyk S.
          Nov 19 at 11:01




          Yes, I made even file .prettierrc with "jsxBracketSameLine": true and it's not working. I got this file in folder .vscode
          – Mieszczańczyk S.
          Nov 19 at 11:01


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53366923%2fclosing-in-new-line%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          Origin of the phrase “under your belt”?