VS Code Shortcuts to Deploy LWC, Apex, Triggers & Everything Post author:Swapnil Jaiswal Post published:June 15, 2025 Post category:Blog / Salesforce Post comments:0 Comments Shortcuts to deploy Salesforce metadata in VS Code Tip: Edit your keybindings.json file with JSON code given below and your shortcuts will be ready. Steps to Open keybindings.json:Open VS CodePress Ctrl + Shift + POpen Keyboard Shortcuts (JSON) / keybindings.jsonReplace the file with following JSON code [ { "key": "ctrl+d", // "command": "sfdx.force.source.deploy.source.path" // replace sf with sfdx if you have latest sfdx version "command": "sf.deploy.current.source.file" }, { "key": "alt+s alt+o", "command": "sfdx.force.org.open" }, { "key": "alt+r", "command": "sfdx.force.source.retrieve.source.path" }, { "key": "alt+s alt+t", "command": "sfdx.force.apex.test.last.method.run" }, { "key": "alt+s alt+r", "command": "sfdx.force.source.retrieve.in.manifest" }, { "key": "alt+s alt+.", "command": "sfdx.force.source.deploy.in.manifest" } ] What shortcuts we have added:ctrl+d: Deploy any type of salesforce components alt+s alt+o: Open orgalt + r: Retrieve current open file mdtalt+s alt+r: Retrieve in manifestalt+s alt+.: Deploy files added in manifest Note: If you are using latest version of sfdx then replace all sfdx with sf. sfdx is being deprecated, sf is the replacement. Our recent posts Salesforce 40+ company wise interview questions. PayPal Salesforce Developer Interview Questions You Might Also Like Building Reusable LWC Components Example 2 January 23, 2025 Trigger – Prevent Account from Deletion if it has related Opportunities June 23, 2024 Get all required fields of Salesforce sObject. August 14, 2022 Leave a Reply Cancel replyYou must be logged in to post a comment.