- Download the zip of the source
- Extract the archive
- Close all instances of WebStorm.
- Copy the
fileTemplatesfolder to ~/.WebStorm[Version Number]/config/
To prevent a known but undetermined error when generating template files:
- Open WebStorm and go to Settings > Editor > File and Code Templates
- Uncheck Reformat according to style for all "SS2 *" templates
SuiteScript templates can be used just like any other WebStorm file template. Just click File > New and select the "SS2 *" script type you'd like to insert.
For script types with multiple entry-point handlers, you will be prompted for
which functions you'd like to generate in the template. Simply put a
y in the
box for each function you'd like to generate. You don't need to put anything in
for the functions you don't want.
I recommend also using the Global File Template Variables
plugin to define the
organization variables for all