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>
visual-studio-code prettier visual-studio-code-extension
add a comment |
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>
visual-studio-code prettier visual-studio-code-extension
add a comment |
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>
visual-studio-code prettier visual-studio-code-extension
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
visual-studio-code prettier visual-studio-code-extension
asked Nov 19 at 0:39
Mieszczańczyk S.
9317
9317
add a comment |
add a comment |
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
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
|
show 2 more comments
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
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
|
show 2 more comments
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
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
|
show 2 more comments
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
That setting in prettier is called jsxBracketSameLine
and needs to be set to true
Documentation
https://prettier.io/docs/en/options.html#jsx-brackets
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
|
show 2 more comments
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
|
show 2 more comments
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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