Adds the auto-complete & snippets for the JS/Scripts ACE Editor config

This commit is contained in:
Warren Buckley
2017-01-29 20:45:42 +00:00
parent bcfea6986c
commit 49bcf413a4

View File

@@ -108,11 +108,21 @@
theme: "chrome",
showPrintMargin: false,
advanced: {
fontSize: '14px'
fontSize: '14px',
enableSnippets: true,
enableBasicAutocompletion: true,
enableLiveAutocompletion: false
},
onLoad: function(_editor) {
vm.editor = _editor;
//Update the auto-complete method to use ctrl+alt+space
_editor.commands.bindKey("ctrl-alt-space", "startAutocomplete");
//Unassigns the keybinding (That was previously auto-complete)
//As conflicts with our own tree search shortcut
_editor.commands.bindKey("ctrl-space", null);
// initial cursor placement
// Keep cursor in name field if we are create a new script