Working with prettier in Visual studio code

“Whenever you are confronted with an opponent, conquer them with love.”

What is prettier ?

In layman terms its an handy tool that will format our code against some set standards, default formatting rules to achieve consistent code style.

How to install prettier  in VS Code?

Search > Prettier – Code formatter

Prettier - Code formatter

Note:- Incase you have different IDE try installing prettier.

How to do perform user specific settings for prettier?

VS Code > File > Preferences > Settings > Under ‘user setttings’

vscode with prettier






    // Set the default prettier settings
    "editor.formatOnSave": false,
    "prettier.singleQuote": true,
    "prettier.trailingComma": "all",
    // Enable per-language
    "[javascript]": {
        "editor.formatOnSave": true

Most Useful Git commands

I have decided to stick with love. Hate is too great a burden to bear.

  1. List all the branches : git branch
  2. Pull the recent changes: git pull
  3. Create a feature branch : git checkout -b <new branch name> <parent branch name>
  4. Delete branch local: git branch -d <branch-name> or git branch -D <branch-name>
  5. Delete branch from remote : git push origin –delete <branch_name>
  6. See all remote branches: git branch -v -a
  7. Get conflicted list of files: git diff –name-only –diff-filter=U
  8. git fetch origin (checkout new remote branch)
    1. git checkout -t origin/remote-branch
  9. List all remote branches: git branch -r ()