Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Anchor Group Developer HelpNew to Visual Studio Code? Get it now.
Anchor Group Developer Help

Anchor Group Developer Help

Sam Gagliardi

|
303 installs
| (2) | Free
Add Commands, Snippets, and more for Anchor Group developers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Anchor Group Dev Help

  • NOTE: This extension requires nvm.

Command Pallete Commands:

  • AG: Setup SuiteCommerce Repo - Setup all or part of a SuiteCommerce repository for development.
  • AG: Create SuiteScript - Generate a SuiteScript template.
  • AG: Create SuiteCommerce Templates - Generate default SuiteCommerce objects like Views, Forms, Collections, etc.

Custom Gulp Commands:

Note: Like all gulp commands, be sure to run these in either the Extensions or Theme folder of your repo.

  • gulp f ---- runs "gulp extension:fetch" or "gulp theme:fetch" depending on your location
  • gulp l ---- runs "gulp extension:local" or "gulp theme:local" depending on your location
  • gulp um ---- runs "gulp extension:update-manifest" or "gulp theme:update-manifest" depending on your location
  • gulp c ---- runs "gulp extension:create" or "gulp theme:create" depending on your location
  • gulp d ---- runs "gulp extension:deploy" or "gulp theme:deploy" depending on your location

Anchor Group Snippets

Suitescript Snippets

The following snippets exist for SuiteScripts: start typing the text in quotes to bring up the snippet examples

  1. "log" module

    • debug
    • error
  2. "record" module

    • create
    • load
    • save
    • delete
    • submitFields
    • selectLine
    • selectNewLine
    • getValue
    • setValue
  3. "search" module

    • create
    • createPaged
    • load
    • lookupFields
  4. "runtime" module

    • getCurrentScript
    • getCurrentUser
    • executionContext
    • getParameter
    • getRemainingUsage
  5. "email" module

    • send
  6. Misc

    • "sublistLoop" => simple loop over a sublist
    • "getSublistValue"
    • "setSublistValue"

SuiteCommerce Snippets

The following snippets exist for SuiteCommerce: start typing the text in quotes to bring up the snippet examples

  1. Load components

    • "layout"
      • "registerView" => layout.registerView
    • "environment"
      • "getConfig" => get configuration
    • "myaccountmenu"
      • "addGroup" => add menu group
      • "removeGroup" => remove native menu group
        • NOTE: "MyAccountMenu" and "MyAccountMenuSource" are a dependency and variable name respectively and should be added to the define/function arguments.
      • "addGroupEntry" => add menu subgroup
    • "cart"
    • "checkout"
    • "plp"
    • "pdp" => load component and iteminfo
    • "pagetype"
      • "registerPageType" => pagetype.registerPageType example
    • "userprofile" => load component and userProfile
  2. Misc

    • "wrap" => simple function wrap for adding context to source code
    • "getBreadcrumbPages" => example 'getBreadcrumbPages' function
    • "getSelectedMenu" => example 'getSelectedMenu' function
    • "beforeShowContent" => example 'beforeShowContent' function
    • "addChildView" => example child view declaration
    • "addConfirmationModal" => example 'GlobalViews.Confirmation.View' declaration
    • "addMessageModal" => example 'GlobalViews.Message.View' declaration
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft