I just pressed "crtl" + "s" and it appeared like this. May i ask what problem i am encountering?
Asked
Active
Viewed 90 times
0
-
If you hover over the first squiggly red line, does it give you an indication of what is wrong? – Andrew Morton May 27 '21 at 10:54
-
It shows "Expected corresponding JSX closing tag for 'button'." Are you saying this? – Ken8899 May 27 '21 at 11:02
-
If you remove the space between `<` and `/` everywhere, does it stop complaining? – Andrew Morton May 27 '21 at 11:04
-
Yes, but it is meaningless, the code is fine originally. I just want to make it look nicer by formatting it when saving, and it turns out like this. – Ken8899 May 27 '21 at 11:10
-
what formatter are you using currently? – kennysliding May 27 '21 at 12:11
-
Can you check this once. https://stackoverflow.com/questions/29973357/how-do-you-format-code-in-visual-studio-code-vscode – Kodali444 May 27 '21 at 12:26
-
Where can check which formatter i am using? I typed "format" on the setting, it showed None for Default Formatter. – Ken8899 May 27 '21 at 18:57
-
I know the shortcut of formatting, and i am using Ubuntu. I have checked it and what you are suggesting? – Ken8899 May 27 '21 at 19:06