OPA can be integrated into editors and IDEs to provide features like syntax highlighting, query evaluation, policy coverage, and more.
Integrations
Editor | Link | Note |
---|---|---|
Visual Studio Code | marketplace.visualstudio.com/items?itemName=tsandall.opa | Supports Language Server and Debug Adapter |
Neovim | Syntax highlighting tree-sitter-rego, Language server nvim-lspconfig, Debugger nvim-dap + nvim-dap-rego | Supports Language Server and Debug Adapter |
Zed | github.com/StyraInc/zed-rego | Supports Language Server |
IntelliJ IDEA | github.com/open-policy-agent/opa-idea-plugin | |
Vim | github.com/tsandall/vim-rego | |
Emacs | github.com/psibi/rego-mode | |
Nano | github.com/scopatz/nanorc | |
Sublime Text | github.com/open-policy-agent/opa/tree/main/misc/syntax/sublime | |
TextMate | github.com/open-policy-agent/opa/tree/main/misc/syntax/textmate | |
Atom | github.com/open-policy-agent/opa/tree/main/misc/syntax/atom | The Atom editor is no longer maintained. |
Rego Playground
The Rego Playground provides a great editor to get started with OPA and share policies. Try it out at play.openpolicyagent.org.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.