tsx: Insert newline between open and close tags on enter (#27618)
Release Notes: - Added support for automatically inserting a newline when hitting enter between opening and closing tags in JSX/TSX
This commit is contained in:
parent
df6ee1fc4a
commit
a360365410
1 changed files with 2 additions and 0 deletions
|
@ -7,3 +7,5 @@
|
|||
("\"" @open "\"" @close)
|
||||
("'" @open "'" @close)
|
||||
("`" @open "`" @close)
|
||||
|
||||
((jsx_element (jsx_opening_element) @open (jsx_closing_element) @close) (#set! newline.only))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue