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

247
Views
After save Javascript file in VScode, it changed all format

I am having a problem with my vscode that I hope someone can help me. When I try to save a javascript file, it changed all the formating. So, I have to change the language mode from Javascript to Javascript React to all of .js files to make it looks normal. Do you have any suggestions?

Before saving

   const FormComponent = () => {
  return (
    <div className="container">
      <h1>Hello </h1>
    </div>
  );
};

export default FormComponent;

After saving

const FormComponent = () => {
    return ( <
        div className = "container" >
        <
        h1 > Hello < /h1> <
        /div>
    );
};

export default FormComponent;

in settings.json

  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": false
  },
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have set editor.formatOnSave to true

Change it to false as it formats the file on saving

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!