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

  1. Choose File | Import Settings from the menu.
  2. Specify the path to the archive with the exported live template configuration.
  3. In the Import Settings dialog, select the Live templates checkbox and click OK.
  4. 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

The available snippets are: