Editor and IDE Support Edit

OPA can be integrated into editors and IDEs to provide features like syntax highlighting, query evaluation, policy coverage, and more.

Integrations

Note: See each integration for what features are supported! Not all support the same features.

EditorLink
Atomhttps://github.com/open-policy-agent/opa/tree/main/misc/syntax/atom
Emacshttps://github.com/psibi/rego-mode
IntelliJ IDEAhttps://github.com/open-policy-agent/opa-idea-plugin
Nanohttps://github.com/scopatz/nanorc
Sublime Texthttps://github.com/open-policy-agent/opa/tree/main/misc/syntax/sublime
TextMatehttps://github.com/open-policy-agent/opa/tree/main/misc/syntax/textmate
Vimhttps://github.com/tsandall/vim-rego
Visual Studio Codehttps://marketplace.visualstudio.com/items?itemName=tsandall.opa

Rego Playground

The Rego Playground provides a great editor to get started with OPA and share policies. Try it out at https://play.openpolicyagent.org/