---
title: "Discussion on \"Automatically Format Code On File Save in Visual Studio Code Using Prettier\" | Hashnode"
description: "Discussion on \"Automatically Format Code On File Save in Visual Studio Code Using Prettier\". Automatically Format Code On File Save in Visual Studio Code Using Prettier.\nHow to use Prettier for formatting Code"
url: "https://hashnode.com/posts/automatically-format-code-on-file-save-in-visual-studio-code-using-prettier/6184fb52fd5d634d0169803b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Automatically Format Code On File Save in Visual Studio Code Using Prettier](https://blog.yogeshchavan.dev/automatically-format-code-on-file-save-in-visual-studio-code-using-prettier?utm_source=hashnode&utm_medium=feed)

Automatically Format Code On File Save in Visual Studio Code Using Prettier. How to use Prettier for formatting Code

Nov 5, 2021 · 4 min read · blog.yogeshchavan.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

@myogeshchavan97 · India

  
[View profile](https://hashnode.com/@myogeshchavan97)

Full Stack Developer | Freelancer | JavaScript | React | Nodejs. https://yogeshchavan.dev/. Book 1:1 @ hiretheauthor.com/myogeshchavan97

Full Stack Developer | Freelancer | JavaScript | React | Nodejs. Loves sharing knowledge through technical articles. Dev.to: https://dev.to/myogeshchavan97 https://linktr.ee/myogeshchavan97

## Responses 2

Markdown supported · ⌘↵ to post

[Ae Bek](https://hashnode.com/@Aem)

[Apr 11, 2022](https://hashnode.com/posts/automatically-format-code-on-file-save-in-visual-studio-code-using-prettier/6184fb52fd5d634d0169803b/comment/6254449eb32ddd968bbe9932)

thanks for sharing this article I solved this issue when I was working with css files contained in a folder which are not a repository. today, I was working in css file which is contained in repository and prettier stops formatting my code I am really overwhelmed by removing blank spaces which can be done easily by prettier. please can u help me with it. how can I make prettier works when I am working with repo.

[Hanu](https://hashnode.com/@hanu)

[Nov 5, 2021](https://hashnode.com/posts/automatically-format-code-on-file-save-in-visual-studio-code-using-prettier/6184fb52fd5d634d0169803b/comment/61856757936da605cb9aab27)

Thank you

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Nov 5, 2021](https://hashnode.com/posts/automatically-format-code-on-file-save-in-visual-studio-code-using-prettier/6184fb52fd5d634d0169803b/comment/61856757936da605cb9aab27#reply-618574c5936da605cb9aaca6)

Glad you found it useful [Hanu](https://hashnode.com/@hanu)
