apm install language-sfcc
language-sfccin the search box and press Enter
The description for autocomplete
.isml tags are grabbed from the official Salesforce Commerce Cloud B2C documentation. In order to properly consult the official guide, you must be a Salesforce Developer registered in an instance of your sandbox or in a Commerce Cloud B2C development environment.
The autocompletion of the tags respects the semantics, for the correct functionality of the tags in the SFCC environment.
Look at this example of spacing of the
<isreplace/> tag. The highlight of the tag color helps you understand if the type is wrong.
Once the package is installed, all the snippets available for the various tag servers are available in the section: Snippets.
By default, any completion of any tag server can be called without the is extension.
Example: if you type
<isinclude template="common/layout/page" />
Support for autocomplete+ is already included in the package.
At each insertion of the opening of each tag, typing therefore: <, all available server-side tags are shown.
For each tag, in turn, all it's available attributes are self-completed. Before you can close each tag the package helps you understand which type of closure to respect for each tag, thus avoiding syntax errors.
In addition to suggesting if the tag has attributes or not to insert, the typologies of suggestion, already explanatory for their name while writing the tag, can be:
Block Closing With Attr(s)
Block Closing Without Attrs
Self Closing With Attr(s)
Self Closing Without Attrs
By default the ISML syntax includes the default scope for HTML files (
text.html.basic), so many of the packages that work for the
.html extension also work in the
.isml files. For example, the extension for automatic closing of tags.
The package supports, compared to other extensions for the various editors, full highlight syntax between the
isml tags. Even in complex situations. Here is an example.
Language SFCC is released under the MIT license.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.