Open peterflynn opened 10 years ago
Maybe for Sprint 37 and above this would do the trick:
define(function (require, exports, module) {
"use strict";
var PreferencesManager = brackets.getModule("preferences/PreferencesManager"),
AppInit = brackets.getModule("utils/AppInit");
AppInit.appReady(function () {
var prefs = PreferencesManager.getPreference("insertHintOnTab");
PreferencesManager.set("insertHintOnTab", true);
PreferencesManager.save();
});
});
Thank you very much @p4bl1t0 !!! This code works, extension author should update the extension
The API used here was removed in adobe/brackets#6984 and replaced with a user-configurable preference (see https://github.com/adobe/brackets/wiki/How-to-Use-Brackets#wiki-preferences).
That could make this extension obsolete, or the extension could be updated to programmatically set the preference instead of what it's doing now.