1.open folder brackets/src/extensions/default/JavaScriptCodeHints/unittest-files/non-module-test-files into bracket
2.check code hints for app.js file by putting a cursor at app.
->you will see code hints:a,b,c,d,b1
3.under the folder, create a module file called MyModule.js with contents:
define(function (require, exports, module) {
"use strict";
exports.TestA = function (a, b) {};
exports.TestB = function () {
return "a string";
};
exports.j = "hi";
});
4.create another js file under same directory called test.js with content:
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global brackets, require */
require(["MyModule"], function (myModule) {
'use strict';
var x = myModule.TestA;
});
5.reload the app.js and repeat step 1 for app. for code hint
->there is only d left for code hint.
Expect:
step 5, code hint should be same.