Categories
Salesforce

Creating a salesforce lightning web component in visual studio code

import { LightningElement, track } from ‘lwc’; export default class HelloLWC extends LightningElement { //default values @track typedValue = ”; salutationOptions = [ {‘label’: ‘None’, ‘value’: ‘None’}, {‘label’: ‘Mr.’, ‘value’: ‘Mr.’}, {‘label’: ‘Ms.’, ‘value’: ‘Ms.’}, {‘label’: ‘Mrs.’, ‘value’: ‘Mrs.’}, {‘label’: ‘Dr.’, ‘value’: ‘Dr.’}, {‘label’: ‘Prof.’, ‘value’: ‘Prof.’}, ]; //method on click of button handleClick(){ const […]

Categories
Salesforce

How to use visual studio code for Salesforce?

Lets learn how to create Salesforce project in visual studio code editor Install sfdx-cli on your pc by typing command in terminal > npm install -g sfdx-cli Verify installation is complete > sfdx -version Install the Salesforce Extension Pack, inside vscode > extensions > Salesforce Extension Pack Create sfdx project in vscode press cmd+shift+p inside […]

Categories
Javascript

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 Note:- Incase you have […]