VScode snippets for moleculer microservices framework.
Search for Moleculer Snippets
in vscode extensions or simply click here
Type "mol" in any Javascript or Typescript file and you may see all the available snippets. Read More
- Try using
Alt+Space
, if you don't see snippet suggestions. - If you are unable to view the snippets after installing the extension.
- Make sure you have Intellisense enabled in vscode.
- Restart VSCode
- Generate Configuration File
moleculer.config.js
(Default, Clean & Minimal Versions) - Services Snippets (Default, Clean & Minimal Versions)
- Insert Service Lifecycle hooks (For Minimal Version Services)
- Snippets for few Middleware functions. (Boilerplate, Emit, LocalAction, RemoteAction)
- Javascript Snippets are usable in typescript files, but no types have been added.
- There are more possible snippets. Please let me know, what other snippets would you prefer?
Fork this repository & Create a PR.
- Fork & Clone this repo & open it in vscode
git clone https://github.com/pavittarx/moleculer-snippets.json
- Edit JSON snippet files in
snippets/
. - Add your own snippets, make sure to follow the pattern used in earlier snippets. Refactor, into new files if needed.
- Test your snippets by pressing
F5
. - Push & Open a PR.include moleculer in prefixes & description.
- Refactoring Snippets into multiple files
- More descriptive snippets
MIT