Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>OCLSnippetsNew to Visual Studio Code? Get it now.
OCLSnippets

OCLSnippets

issilva5

|
235 installs
| (0) | Free
Implements the main OCL rules as snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

oclsnippets

This extension provides some useful snippets when describing OCL constraints.

Features

These is the list of constraints' snippets supported.

  • derive: Derivated attribute
  • init: Init attribute
  • inv: Invariant declaration
  • query: Operation body
  • prepost: Pre and post conditions
  • btype: Basic Types
  • col: Collection Types
  • ->: Collection Operations
  • ->iter: Iterate functions for collections
  • if: If-then-else statement
  • let: Local variable declaration
  • def: Attribute or method definition

Release Notes

1.0.0

Initial release of the extension.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft