here are few which I use, would love to hear from others...— Rajiv Bhatt (@rajivbhatt) June 11, 2019
- ApexPMD
- Bracket Pair Colorizer
- Bookmarks
- Uncrustify
1. Salesforce Extension Pack
As the name suggests, it is an extension pack, so it primarily consists of 6 extensions which are as follows:-
- Salesforce CLI Integration :- This extension primarily link with your Salesforce CLI and helps you to connect with your Salesforce Environment using Salesforce DX commands.
- Apex :- This extension provided syntax highlighting and code completion for Apex.
- Apex Interactive Debugger :- This extension enables you to debug your apex code right from your IDE.
- Apex Replay Debugger :- This extension replays the apex execution from a debug log reference and helps in debugging the error in your apex code.
- Lightning Web Components :- This extension enables you to create and work on lightning web components. You can create, edit and deploy lightning web components right from your IDE to Salesforce.
- Aura Components :- This extension enables you to work on normal lightning components that uses the aura framework.
- Visualforce :- This extension enables you to work on Visualforce Pages and Components right from your IDE.
2. Apex PMD
As developers, we all want to write quality code right ? Apex PMD allows you to run static analysis on your Apex and Visualforce files.As you can see in the above image, Apex PMD will do the static code analysis on your apex code and will report the errors right away, you can also manage when to run code analysis in your user settings as shown below:-
You can run Apex PMD on file open, on file save and there are a lot of other options that you can configure. I personally prefer running it on file save so that you can view the errors each time you make any changes to your code and you're saving your file. You can also setup your custom rule-sets for Apex PMD.
3. Salesforce Package.xml Generator Extension for VS Code
![]() |
Opening the extension using Command Palette |
![]() |
Selecting the metadata components dynamically to generate package.xml |
4. Git Lens - Git supercharged
With Git Lens, you can directly see within a file, when a single line or a code block was changed and who changed it along with the commit message. You can also view it's history to understand how the code evolved. Git Lens provides a number of features, some of which includes:- Code Lens, Current Line Blame, Repositories View, File History View etc. You can learn about all the features in detail by visiting the official marketplace page.
Official Link to Marketplace:- https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens
5. Bookmarks
Official Link to Marketplace:- https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
6. Settings Sync
![]() |
Setting up and uploading your settings to a GitHub Gist |
7. Better Comments
With Better Comments you can classify and write more human friendly comments in your code. It classifies your comments into:- Alerts, Queries, TODOs and Highlights by giving each a specific color.The thing I love about Better Comments is that you can also form your custom rules by simply editing it in the settings, you just need to specify the tag you'll start your line with, the color you want to use to highlight that, whether you want a strikethrough or not and the background color if you want one, as shown below:-
Official Link to Marketplace:- https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments
8. Bracket Pair Colorizer
9. Auto Rename Tag
10. vscode-icons
Official Link to Marketplace:- https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons
- ForceCode:- This is a one stop shop for Salesforce Development in VSCode. It is quite easier to use and has a number of features which are unique to this extension and very useful like:- Bulk record updates, Execute Anonymous etc. Link:- https://marketplace.visualstudio.com/items?itemName=JohnAaronNelson.ForceCode
- CodeScan:- If you use SonarQube tool for scanning your code in order to implement best practices, this extension is of much use. You can also use CodeScan cloud on the other hand which will scan your code as you type it in your IDE and report bugs. Link:- https://marketplace.visualstudio.com/items?itemName=codescansf.codescan-vscode
- CSS Peek:- Allows you to have a look at the CSS code directly from HTML by hovering on it. Link:- https://marketplace.visualstudio.com/items?itemName=pranaygp.vscode-css-peek
- SalesforceDX Code Companion:- This extension works with SalesforceDX CLI and provides some additional features like:- Better performance while pushing the code to Salesforce Org, opening a VF page directly from VSCode and even has a command to open SLDS website which is required very often while working on Lightning/LWC. You can also switch the org easily, open the component library etc. Link:- https://marketplace.visualstudio.com/items?itemName=MohithShrivastava.dx-code-companion
- Trailing Spaces:- This extension highlight the trailing spaces and delete them in a flash. Trailing spaces are the extra spaces at the end of each line that we have while writing code. It's a very useful extension especially if you're tracking your code using git. Trailing spaces makes it difficult to view the actual change as even an extra space is counted as a modification in git. However, using this extension, it'll not be an issue within your project team. Link:- https://marketplace.visualstudio.com/items?itemName=shardulm94.trailing-spaces
If you liked this post, make sure to write your opinion in the comments down below and if you think I missed any extension which is of use feel free to write your suggestions also.
Happy Trailblazing..!!
Happy to know that Milad, make sure to share it among your buddies :-)
ReplyDeleteAwesome.Thank you
ReplyDeleteKeep Learning...!! :-)
DeleteHi Rahul,
ReplyDeleteExpecting LWC tutorial from you ASAP.
Regards,
Santhosh
Hey Santhosh, you'll get that by next month probably. It's in the pipeline :-)
ReplyDeletevery helpful. Thanks!
ReplyDeleteGlad you liked it Naveen :-) Make sure to share it in your network too...!!
DeleteVery helpful. Thanks!
ReplyDeleteI would add AuraHelper to the list. It has some added benefits, including a customized block comment template for Class and Method Javadoc style commenting.
ReplyDeleteperfect!! thanks
ReplyDelete