title: what is the difference between installing prettier as a NPM package and installing prettier extension in VS Code
body: <p>I'm new to web programming and I learned that we can type <code>npm i -D prettier</code> to install prettier as one of the <code>devDependency</code> and use it to format our code. Then I found that there is a VS Code extension Pretty that does exactly the same thing. </p>
  
  <p>I don't know what the differences are between the two.</p>
  
  <p>If I only install the extension, can I format the codebase where the prettier npm package is not installed? </p>
  
  <p>Also does the configuration process differ for these two? Which one is preferred?</p>