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

154
Views
How to I solve formatting problem on vscode for react?

I've started watching a React Tutorial.

And I do have problem, vscode doesn't format styled consts. Also if I want to write fs14 or fs It doesn't recommand me anything.

const Container = styled.div`
width: 100%;
height: 100vh;
display: flex;
position: relative;
background-color: coral;

`

const Arrow = styled.div`

    width: 50px;
    height: 50px;
    background-color: #fff7f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: ${(props) => props.direction === "left" && "10px"};
    right: ${(props) => props.direction === "right" && "10px"};
    margin: auto;
`


After I format the file, the Container remains the same. Also If I want to write fs/fs14 for example it doesn't recommand my font-size => font-size: 14;

Help please? :D

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

0

Try installing the styled components extension and see if that solves the problem https://marketplace.visualstudio.com/items?itemName=styled-components.vscode-styled-components

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!