CodeMirror also provides support for code completion (Ctrl-Space) via completeMethod. This can be activated via extraKeys attribute. ${showcase:getFileContent('/sections/codeMirror/example-codeCompletion.xhtml')} ${showcase:getFileContent('/org/primefaces/extensions/showcase/controller/CodeMirrorController.java')}