Automate your routine tasks on SFCC projects such as:
overriding files from one cartridge to another
copying file path/require/include into clipboard
searching in documentation
💡Compatibility
Beaver fully supports only SFRA projects. However, some of the feature are compatible with SiteGen as well.
⭐ Usage
Extract/Override
Using extract and override buttons you can save time and make less errors.
- copy current file's include into clipboard
- override current file into another cartridge
💡 You can use commands to t
Commands
Beaver adds several new commands that you can run manually.
To run a command you need to open the command pallette (press F1 or Ctrl + Shift + P) and enter the command name.
▰ Extract Swiss-kni command copies to clipboard require of the file depends on type.
for scripts file copy require: var fileName = require('*/filePath')
for templates file copy isinclude: <isinclude template='templatePath' />
for resource properties file copy active line as Resource.msg('{activeLinePropName}', '{fileName}', null)
▰ Copy unix path command copies file path relatively to the project root folder.
▰ Override command overrides current file to another cartridge
Beaver Dam
Beaver introduces a new panel called Beaver Dam. There two items:
Cartridges is a active cartridge list where you can pin/unpin cartridge for overriding.
Documentation. Search in docs without leaving VS Code.
Hovers
If you hover over the API class such as require('dw/web/URLUtils') you see a tip with ▰ Open docs suggestion. Clicking it will open corresponding documentation topic.