# \[SOLVED\] save without auto formatting in vscode

**URL:** <https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [April 3, 2020, 7:28pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938 "2020-04-03T19:28:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aj\_senpai](https://onehack.st/user_avatar/onehack.st/aj_senpai/32/29680_2.png) [@Aj\_senpai](https://onehack.st/u/Aj_senpai)\
**Post date:** [April 3, 2020, 7:28pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938/1 "2020-04-03T19:28:34Z")

</div>

does anyone know how to save codes in vscode without auto formatting.  
It is really annoying and i couldn’t find the working solution online.

---

<div class="post-metadata">

**Author:** ![Andrei\_Vlad](https://onehack.st/user_avatar/onehack.st/andrei_vlad/32/11800_2.png) [@Andrei\_Vlad](https://onehack.st/u/Andrei_Vlad)\
**Post date:** [April 3, 2020, 7:45pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938/2 "2020-04-03T19:45:38Z")

</div>

Are you using any formatting extensions like Prettier?  
Check in the setting of such extensions it has the option to disable formatting on save.

If not then disable VS Code’s default behavior of format on save like the screenshot below.

 ![image](https://onehack.st/uploads/default/original/3X/b/2/b2284fa69dab9a1d9472833df8b850697e8391ad.png)

---

<div class="post-metadata">

**Author:** ![Aj\_senpai](https://onehack.st/user_avatar/onehack.st/aj_senpai/32/29680_2.png) [@Aj\_senpai](https://onehack.st/u/Aj_senpai)\
**Post date:** [April 4, 2020, 1:38pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938/6 "2020-04-04T13:38:56Z")

</div>

It is disabled and i am not using any extension to beautify my code. It’s just… Whenever i save my code vscode automatically add some braces around return statements . I mean who put braces around one line return statements 😔

---

<div class="post-metadata">

**Author:** ![Andrei\_Vlad](https://onehack.st/user_avatar/onehack.st/andrei_vlad/32/11800_2.png) [@Andrei\_Vlad](https://onehack.st/u/Andrei_Vlad)\
**Post date:** [April 4, 2020, 4:57pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938/7 "2020-04-04T16:57:13Z")

</div>

What programming language?

What are the other extensions installed for that language?

---

<div class="post-metadata">

**Author:** ![mojojojo\_666](https://onehack.st/user_avatar/onehack.st/mojojojo_666/32/22258_2.png) [@mojojojo\_666](https://onehack.st/u/mojojojo_666)\
**Post date:** [April 3, 2020, 8:01pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938/3 "2020-04-03T20:01:18Z")

</div>

because who would want to have badly formatted code? badly or “custom” formatted code should be forbidden and punished by death penalty

---

<div class="post-metadata">

**Author:** ![Andrei\_Vlad](https://onehack.st/user_avatar/onehack.st/andrei_vlad/32/11800_2.png) [@Andrei\_Vlad](https://onehack.st/u/Andrei_Vlad)\
**Post date:** [April 3, 2020, 8:37pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938/4 "2020-04-03T20:37:34Z")

</div>

Well Not Really,

I’ve developed a VueJS Application which was causing problems with my linter based on the usage of singe quotes `'` or double quotes `"`. Whenever saving the .vue file my prettier extension was changing all my single quotes to double quotes as basic javascript expects it to but it was breaking my vue template. Hence i had to disable it. This is just one use case others may have their own. So i agree with you that custom formatting shouldn’t be allowed but developers should also have control on how their IDE should work.

---

<div class="post-metadata">

**Author:** ![mojojojo\_666](https://onehack.st/user_avatar/onehack.st/mojojojo_666/32/22258_2.png) [@mojojojo\_666](https://onehack.st/u/mojojojo_666)\
**Post date:** [April 3, 2020, 8:53pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938/5 "2020-04-03T20:53:14Z")

</div>

ok that makes more sense; i dont work/know well with lint so i didnt think it could give you trouble for such small details. but if its about some “super cool custom formatting” then to the guillotine.

---

<div class="post-metadata">

**Author:** ![RoohNooh](https://onehack.st/user_avatar/onehack.st/roohnooh/32/166257_2.png) [@RoohNooh](https://onehack.st/u/RoohNooh)\
**Post date:** [April 5, 2020, 11:35pm UTC](https://onehack.st/t/solved-save-without-auto-formatting-in-vscode/76938/8 "2020-04-05T23:35:04Z")

</div>

I hope this is what you meant?

 ![image](https://onehack.st/uploads/default/original/3X/7/a/7aea6e5a71e6f804e9480adec57343f55ccb6855.png)

> <https://stackoverflow.com/questions/46470363/how-to-disable-automatically-adding-a-closing-curly-brace-or-bracket-insertion-i>
