I have created a WebStorm plugin with some handy CDK snippets to make your life easier. Download the plugin below and follow the instructions.
Installation
cdk-snippets-v1.0.0.zip
- Choose File | Import Settings from the menu.
- Specify the path to the archive with the exported live template configuration.
- In the Import Settings dialog, select the Live templates checkbox and click OK.
- After restarting WebStorm, use
cmd + j
and type CDK.
to see all the CDK templates.
![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/67662e08-4716-4731-b89e-1fc8bbb56376/Kapture_2020-04-16_at_15.09.53.gif](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/67662e08-4716-4731-b89e-1fc8bbb56376/Kapture_2020-04-16_at_15.09.53.gif)
The available snippets are:
- CDK.Empty.Aspect - Creates an empty CDK Aspect declaration
- CDK.Empty.Construct - Creates an empty CDK Construct declaration
- CDK.Empty.Stack - Creates an empty CDK Stack declaration
- CDK.Full.Aspect - Creates a full blown CDK Stack Aspect declaration
- CDK.Full.Construct - Creates a full blown CDK Construct declaration
- CDK.Full.Stack - Creates an empty CDK Stack declaration