Pages

Showing posts with label plugins. Show all posts
Showing posts with label plugins. Show all posts

Saturday, May 30, 2020

Useful VS Code Extensions

I, like many others, are fans of extensions which helps in boosting productivity while coding.  I am constantly looking for such plugins, settings, themes, and productive tips to enhance my coding experience.

Since I started using VS Code for Salesforce development I was looking for some cool plugins which increase my productivity and also help me to gain my coding experience.

I am guessing most people are already aware of some extensions or maybe using on a daily basis because these extensions are useable.

Therefore, I decided to create a list with some of my favorite or maybe useful VS Code extensions. So without further ado lets list out the extensions.

1. Salesforce Extension Pack

This extension is very important if you are doing Salesforce development. This tool will provide features for working with development orgs (scratch orgs, sandboxes and DE orgs), Apex, Aura components, Lightning Web Components, Visualforce.

2. Salesforce Documenter

This extension helps in facilitating proper and structured code documenting for Salesforce related files. This tool is very useful for the developers as it makes the code more readable and easy to understand by automating tasks such as adding File headers as well as Method headers. Also, this tool is very useful for lazy 😴 developers like me who usually add one-liners as method headers.

After installing this extension to VS Code, go to any Apex class and select method and right-click you will see the option as 'Generate Apex Method Header', click on it and you will get the header added automatically on the method.


Also, if you see there is another option available as 'Insert File Header', this will add the headers on the Apex class.

3. Salesforce Package.xml Generator

This extension provides a User Interface to choose metadata components for the Package.xml file for development against sandboxes or DE orgs. This is similar to the Eclipse Force.com IDE Add/Remove Metadata Components option.

4. Local History

A visual code extension for maintaining the local history of files. This extension is a savior for me many times.
This extension will help you out when you change a file or delete the file by accident 😈. Every time you make changes to a file, a copy of the old content of that file is stored in local history. With the help of this tool, at any time you can compare the existing code with any older version of the file from history.

5. Highlight Matching Tag

As the name suggests this extension highlights the matching closing tags, be it on the same line or far down the editor. This is especially useful when you have nested tags and several lines of codes to read.


In the above image as you can see this tool highlighted the start and end 'div' tag. 

6. Indented Block Highlighting

This one is my most favorite extension as it exactly does the same thing as the name suggests. This tool highlights the indented block which you are working with. In my case, it highlights the block within if


So this is my list of VS Code extensions that I use on a daily basis. Some of the extensions are not that popular but they got the job done.