Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

285
Visualizações
Prettier format code write by me, not the whole team

I am a programmer, and I started using prettier, I want prettier to format the code write only by me, for example if I open a JavaScript file pushed on Git by other members of the team, I dont want that code to be formated. Is there any posibility?

Searched on the web but nothing found

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Setting: Format On Save Mode

Visual Studio Code has a setting "Format On Save Mode", which you can set to "modifications", which will only format the changes you made.
You might need some experimentation with this feature but it promises exactly what you are asking.

  1. File -> Preferences -> Settings
  2. Search for format
  3. Find Editor: Format On Save Mode
  4. Change value to modifications
  5. Evaluate the other auto-formatting options if they make sense to deactivate

See screenshot below:
enter image description here

about 4 years ago · Juan Pablo Isaza Relatório

0

There is no option for that, but you can ignore the code you don't want to format with specific comments.

e.g. to ignore js code you need to type // prettier-ignore

// prettier-ignore
matrix(
  1, 0, 0,
  0, 1, 0,
  0, 0, 1
)

You can check their documentation to learn more: https://prettier.io/docs/en/ignore.html

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda