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