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

192
Views
VS Code Javascript Formatting is acting strange

I am using VS Code and the prettier extension. However, This is how it formats my javascript:

showModal.forEach(node => {
  node.addEventListener(
    'click',
    () => {
      modalClose(findHidden, 'remove');
    },
    false
  );
});

I would prefer if it would format it like this:

showModal.forEach(node => {
  node.addEventListener('click', () => {
      modalClose(findHidden, 'remove');
    },
    false
  );
});

Is this normal behavior for Prettier or should I use different settings? Thank you

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The reason why the code is formatted this way in VS Code is because I had the word wrap length at 60. I increased it to 80 and the problem was resolved.

about 4 years ago · Juan Pablo Isaza Report
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!