Configuration

Configure Intellij SFCC for VS Code

Sandbox Connection

The VS Code extension manages connections through the dedicated sidebar panel.

Adding a Connection

Open the SFCC Panel

Click the Intellij SFCC icon in the Activity Bar to open the sidebar panel.

Add New Connection

Click the + button in the Connections section. A form opens in the editor.

Enter Credentials

Fill in your sandbox details:

FieldDescriptionExample
NameA friendly name for this connectionDev Sandbox
HostnameYour sandbox hostnamedev01-na01-example.demandware.net
UsernameBusiness Manager usernameadmin
PasswordBusiness Manager password••••••••
Code VersionActive code versionversion1

Test Connection

Click Test Connection to verify your credentials. A green checkmark indicates success.

Credentials are stored in VS Code's SecretStorage API, which uses the OS keychain for security.

Multiple Connections

You can configure multiple sandbox connections and switch between them:

  • Click the connection name in the Status Bar to switch
  • Right-click a connection in the sidebar to set it as active
  • Each connection maintains its own code version and upload state

Extension Settings

General Settings

Access settings via Settings → Extensions → Intellij SFCC or add to settings.json:

{
  "intellijsfcc.upload.onSave": true,
  "intellijsfcc.upload.delay": 300,
  "intellijsfcc.upload.showNotifications": true,
  "intellijsfcc.upload.excludePatterns": [
    "node_modules/**",
    ".git/**"
  ]
}

All Settings Reference

SettingDefaultDescription
upload.onSavetrueUpload files automatically on save
upload.delay300Debounce delay in ms before upload
upload.showNotificationstrueShow toast after each upload
upload.excludePatterns[]Glob patterns to exclude
upload.cartridgePathautoOverride cartridge path detection
SettingDefaultDescription
isml.validation.enabledtrueEnable ISML diagnostics
isml.formatting.enabledtrueEnable ISML formatting
isml.completion.enabledtrueEnable ISML completions
isml.highlighting.customTagstrueHighlight custom tags
SettingDefaultDescription
script.completion.dwApitrueDW API autocomplete
script.completion.requirePathstrueResolve require paths
script.hooks.navigationtrueHook navigation
script.hooks.completiontrueHook name completion

dw.json Configuration

The extension reads project settings from dw.json in your project root:

{
  "hostname": "dev01-na01-example.demandware.net",
  "username": "admin",
  "password": "password",
  "code-version": "version1",
  "cartridge-path": "app_custom:app_storefront_base"
}

If both dw.json and a sidebar connection are configured, the sidebar connection takes priority. You can override this in settings.

Keyboard Shortcuts

Default keyboard shortcuts (customizable in Keyboard Shortcuts):

CommandWindows/LinuxmacOS
Upload Current FileCtrl+Shift+UCmd+Shift+U
Upload CartridgeCtrl+Shift+Alt+UCmd+Shift+Alt+U
Toggle Log StreamingCtrl+Shift+LCmd+Shift+L
Switch ConnectionCtrl+Shift+CCmd+Shift+C
Open Sandbox in BrowserCtrl+Shift+BCmd+Shift+B

On this page