Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

203
Views
VS CODE: Pressing enter between opening and closing html tag in react no longer adds new line or moves cursor between the two tags

So when I'm writing HTML in a React component in vs code, I'll use the emmet abbreviation which works properly and generates an opening and closing html tag automatically when I press enter. But when I put my cursor between the two tags and press enter to add child elements, it simply moves the closing tag to the next line and keeps my cursor before it on the same line, rather than moving the tag down two lines and putting my cursor between the two tags. This only happens in javascript files and not in html files. Also, enter functions normally on plain divs and semantic elements. The problem only arises when a class attribute is added.

I didn't install any new extensions or change any settings. This just randomly starting happening yesterday when I booted up vscode. I've tried just about everything, been at it for hours, and cannot fix this. I've also reinstalled vscode, reset my settings to default, and disabled all extensions to no avail.

Thanks.

Before

Improper Functionality

Proper Functionality

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!