Add autocomplete option.
This commit is contained in:
parent
adfb259346
commit
b96692eddf
3 changed files with 8 additions and 1 deletions
|
@ -40,6 +40,8 @@ make sure you don't have any syntax errors.
|
|||
//Web workers are used for code hinting in PHP, JavaScript, and JSON.
|
||||
//We don't yet have a way to set the worker options, but you can disable it.
|
||||
"useWorker": true,
|
||||
//autocomplete triggers on Ctrl-Space
|
||||
"autocomplete": true,
|
||||
|
||||
//By default, the palette searches the current file only unless you widen the scope.
|
||||
//If you'd like it to search all open files by default, set this option to true.
|
||||
|
|
|
@ -35,6 +35,11 @@ define(["file", "command", "settings!ace,user", "dom2"], function(File, command,
|
|||
editor.setShowInvisibles(userConfig.showWhitespace || false);
|
||||
editor.container.style.fontSize = userConfig.fontSize ? userConfig.fontSize + "px" : null;
|
||||
editor.container.style.fontFamily = userConfig.fontFamily || null;
|
||||
ace.config.loadModule("ace/ext/language_tools", function() {
|
||||
editor.setOptions({
|
||||
enableBasicAutocompletion: userConfig.autocomplete
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
command.on("init:startup", init);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Caret",
|
||||
"description": "Professional text editing for Chrome and Chrome OS",
|
||||
"version": "1.1.9",
|
||||
"version": "1.1.10",
|
||||
"manifest_version": 2,
|
||||
"icons": {
|
||||
"128": "icon-128.png"
|
||||
|
|
Loading…
Reference in a new issue