# Format Document

**URL:** <https://forum.codewithmosh.com/t/format-document/2477>\
**Category:** Python\
**Created:** [February 5, 2021, 6:39am UTC](https://forum.codewithmosh.com/t/format-document/2477 "2021-02-05T06:39:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Somyf](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Somyf](https://forum.codewithmosh.com/u/Somyf)\
**Post date:** [February 5, 2021, 6:39am UTC](https://forum.codewithmosh.com/t/format-document/2477/1 "2021-02-05T06:39:16Z")

</div>

In lesson 1-8 of the python course, I can not use “format document” in the command palette. I have installed many text formatters in VScode, like the suggested ones and XML tools, Json tools. Still, I face below error. Can anybody help, please?

Error: There is no formatter for ‘plaintext’ files installed.

☹

---

<div class="post-metadata">

**Author:** ![NicolasATC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/nicolasatc/32/714_2.png) [@NicolasATC](https://forum.codewithmosh.com/u/NicolasATC)\
**Post date:** [February 5, 2021, 2:22pm UTC](https://forum.codewithmosh.com/t/format-document/2477/2 "2021-02-05T14:22:33Z")

</div>

Can you share a screenshot of the error?

---

<div class="post-metadata">

**Author:** ![Somyf](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Somyf](https://forum.codewithmosh.com/u/Somyf)\
**Post date:** [February 6, 2021, 8:54pm UTC](https://forum.codewithmosh.com/t/format-document/2477/3 "2021-02-06T20:54:15Z")

</div>

![1](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/af0c5a4aa40b41a49e6bb1ddcb302c3f65105166.jpeg)

I get an error (in the first picture), but even after installing all the recommneded extensions the issue still exists

---

<div class="post-metadata">

**Author:** ![Megha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/megha/32/1136_2.png) [@Megha](https://forum.codewithmosh.com/u/Megha)\
**Post date:** [February 7, 2021, 4:33am UTC](https://forum.codewithmosh.com/t/format-document/2477/4 "2021-02-07T04:33:05Z")

</div>

Try clicking _Install Formatter_

---

<div class="post-metadata">

**Author:** ![Somyf](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Somyf](https://forum.codewithmosh.com/u/Somyf)\
**Post date:** [February 7, 2021, 4:52am UTC](https://forum.codewithmosh.com/t/format-document/2477/5 "2021-02-07T04:52:24Z")

</div>

I have surely done this! Is there any specific extension for ‘plaintext’ formatter that you know it would help?

---

<div class="post-metadata">

**Author:** ![Megha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/megha/32/1136_2.png) [@Megha](https://forum.codewithmosh.com/u/Megha)\
**Post date:** [February 7, 2021, 5:40am UTC](https://forum.codewithmosh.com/t/format-document/2477/6 "2021-02-07T05:40:13Z")

</div>

I never used any extension for a _formatter_  
Mosh never asked to install any extension for code formatting \*ig

Try to uninstall VS Code and then install it again  
\*hopefully it can help…

---

<div class="post-metadata">

**Author:** ![SAM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sam/32/167_2.png) [@SAM](https://forum.codewithmosh.com/u/SAM)\
**Post date:** [February 7, 2021, 8:50am UTC](https://forum.codewithmosh.com/t/format-document/2477/7 "2021-02-07T08:50:14Z")

</div>

> [@Somyf](#):
>
> Error: There is no formatter for ‘plaintext’ files installed.

I would ask myself why VSCode thinks that the file is “plaintext” instead of “python”. Did you name the source file correctly with a `.py` extension? Does any of your other extensions mess up the detection of python files? Can you change the file type manually to Python by clicking on “Plain Text” in the status bar?

---

<div class="post-metadata">

**Author:** ![Somyf](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Somyf](https://forum.codewithmosh.com/u/Somyf)\
**Post date:** [February 10, 2021, 8:39pm UTC](https://forum.codewithmosh.com/t/format-document/2477/8 "2021-02-10T20:39:36Z")

</div>

Thanks for your help Sam, I figured out that my python was not installed properly. That was why I got the error.

---

<div class="post-metadata">

**Author:** ![Givemore](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Givemore](https://forum.codewithmosh.com/u/Givemore)\
**Post date:** [March 27, 2021, 10:42am UTC](https://forum.codewithmosh.com/t/format-document/2477/9 "2021-03-27T10:42:06Z")

</div>

I have no idea bro, am starting, can anyone tell me how are these courses done, i want to pay but I don’t have any idea how are things going on here
