Want to Make Your Code Look Pretty and Well-Organized?
Try the đŁđżđ˛đđđśđ˛đż extension in VS Code!đĄ
đŞđľđŽđ đśđ đŁđżđ˛đđđśđ˛đż?
âł Prettier is a tool that makes your code look neat and consistent.
âł It works by checking your code and fixing its style according to set rules.
âł Prettier supports many programming languages and works with most code editors, including Visual Studio Code (VS Code).
âł By using Prettier, your code will always be clean, easy to read, and free of style issues.
đđźđ đđź đđťđđđŽđšđš đŁđżđ˛đđđśđ˛đż đśđť đŠđŚ đđźđąđ˛:
1ď¸âŁ Open đŠđŚ đđźđąđ˛.
2ď¸âŁ Go to the đđ đđ˛đťđđśđźđťđ đđśđ˛đ by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing đđđżđš+đŚđľđśđłđ+đŤ.
3ď¸âŁ Search for "đŁđżđ˛đđđśđ˛đż - đđźđąđ˛ đłđźđżđşđŽđđđ˛đż" in the search bar.
4ď¸âŁ Select the first one which appears in the search results, Click on the đśđťđđđŽđšđš đŻđđđđźđť.
5ď¸âŁ Once installed, you can đ°đšđźđđ˛ đđľđ˛ đđ đđ˛đťđđśđźđťđ đđśđ˛đ.
đđźđ đđź đđťđŽđŻđšđ˛ đđđđź đŚđŽđđ˛ đŽđťđą đđđđź đđźđżđşđŽđ đđśđđľ đŁđżđ˛đđđśđ˛đż:
1ď¸âŁ Open the Command Palette by pressing đđđżđš+đŚđľđśđłđ+đŁ.
2ď¸âŁ Type and select Preferences: đ˘đ˝đ˛đť đŚđ˛đđđśđťđ´đ (đđŚđ˘đĄ).
3ď¸âŁ Add the following settings to your đđ˛đđđśđťđ´đ.đˇđđźđť file:
{
"editor.formatOnSave": true,
"editor.defaultFormatter":
"esbenp.prettier-vscode"
}
4ď¸âŁ Save the đđ˛đđđśđťđ´đ.đˇđđźđť file.
Now, every time you save your any file in VS Code, Prettier will automatically format your code according to its rules.â¨
Top comments (0)