其实直接引用ext-all.js也能有提示,但是提示内容很不全.网上搜了下,各种用插件的,但版本是2.0.2…
ExtJS版本太多,还是生成个适用于自己的版本的提示文件吧.

谷歌了下,方法也不难,以ext-4.1.0-beta-1为例:

1,写个html:(注意ext-all.js和bootstrap.js以及class文件的引用路径)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Visual Studio中生成ExtJS提示</title>
<link rel="stylesheet" type="text/css" href="ext-4.1.0-beta-1/resources/css/ext-all.css" />
<script type="text/javascript" src="ext-4.1.0-beta-1/docs/extjs/bootstrap.js"></script>
<script type="text/javascript" src="ext-4.1.0-beta-1/ext-all.js"></script>
<script type="text/javascript" src="js/class.js"></script>
</head>
<body>
<script type="text/javascript">
Ext.onReady(function () {
//建立命名管道
Ext.ns("VS.Ext");
var processPrototype = function (s, d) {
//处理静态方法
for (var c in s) {
if (s.hasOwnProperty(c)) {
d[c] = "";
}
}
//处理原型
for (var c in s.prototype) {
d[c] = "";
}
}
//处理实例
var processInst = function (s, d) {
var i = 0;
for (var c in s) {
d[c] = "";
}
}
//处理Ext对象
for (var c in Ext) {
if (Ext.hasOwnProperty(c)) {
var p = Ext[c];
if (Ext.isObject(p)) {
if (!p["$className"]) {
if (["buildSettings", "versions", "lastRegisteredVersion"].indexOf(c) >= 0) {
VS.Ext[c] = p;
}
}
} else if (Ext.isFunction(p)) {
if (!p["$className"]) {
VS.Ext[c] = "";
}
} else {
VS.Ext[c] = "";
}
}
}
//枚举对象
Ext.Array.each(classList, function (classname) {
Ext.ns("VS." + classname);
var d = classname.split("."),
sobj = Ext[d[1]],
dobj = VS.Ext[d[1]];
if (d.length >= 3) {
sobj = sobj[d[2]],
dobj = dobj[d[2]];
}
if (d.length == 4) {
sobj = sobj[d[3]];
dobj = dobj[d[3]];
}
if (sobj && dobj) {
if (Ext.isObject(sobj)) {
processInst(sobj, dobj);
} else {
if (sobj.prototype) {
processPrototype(sobj, dobj);
}
}
}
})
var html = "Ext=" + Ext.encode(VS.Ext) + "
";
//处理别名
for (var c in Ext.ClassManager.maps.alternateToName) {
html += c + "=" + Ext.ClassManager.maps.alternateToName[c] + "</br>";
}
Ext.getBody().dom.innerHTML = html;
})
</script>

</body>
</html>

2,上面html中的class.js是一位博主整理的,其实是在Ext JSAPI文档首页将列出来的类名用脚本列出来,然后再手动整理一下,如果后续ExtJS版本的api文档的类名有删改的话,还需要手动调整。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
//class.js文件内容:

var classList=[
"Ext.layout.container.Absolute",
"Ext.layout.container.AbstractCard",
"Ext.AbstractComponent",
"Ext.AbstractManager",
"Ext.container.AbstractContainer",
"Ext.layout.container.AbstractFit",
"Ext.util.AbstractMixedCollection",
"Ext.panel.AbstractPanel",
"Ext.AbstractPlugin",
"Ext.data.AbstractStore",
"Ext.view.AbstractView",
"Ext.layout.container.Accordion",
"Ext.Action",
"Ext.grid.column.Action",
"Ext.Ajax",
"Ext.data.proxy.Ajax",
"Ext.layout.container.Anchor",
"Ext.fx.Anim",
"Ext.util.Animate",
"Ext.fx.Animator",
"Ext.app.Application",
"Ext.chart.series.Area",
"Ext.data.reader.Array",
"Ext.data.Association",
"Ext.layout.container.Auto",
"Ext.chart.axis.Axis",
"Ext.chart.axis.Gauge",
"Ext.chart.axis.Time",
"Ext.chart.series.Bar",
"Ext.Base",
"Ext.form.field.Base",
"Ext.form.Basic",
"Ext.data.Batch",
"Ext.data.BelongsToAssociation",
"Ext.grid.column.Boolean",
"Ext.layout.container.Border",
"Ext.view.BoundList",
"Ext.view.BoundListKeyNav",
"Ext.layout.container.Box",
"Ext.button.Button",
"Ext.container.ButtonGroup",
"Ext.layout.container.Card",
"Ext.chart.series.Cartesian",
"Ext.chart.axis.Category",
"Ext.grid.plugin.CellEditing",
"Ext.chart.Chart",
"Ext.form.field.Checkbox",
"Ext.form.CheckboxGroup",
"Ext.layout.container.CheckboxGroup",
"Ext.selection.CheckboxModel",
"Ext.menu.CheckItem",
"Ext.Class",
"Ext.ClassManager",
"Ext.util.ClickRepeater",
"Ext.data.proxy.Client",
"Ext.menu.ColorPicker",
"Ext.chart.series.Column",
"Ext.layout.container.Column",
"Ext.form.field.ComboBox",
"Ext.Component",
"Ext.util.ComponentDragger",
"Ext.ComponentLoader",
"Ext.ComponentManager",
"Ext.ComponentQuery",
"Ext.dom.CompositeElement",
"Ext.fx.target.CompositeElementCSS",
"Ext.dom.CompositeElementLite",
"Ext.data.Connection",
"Ext.container.Container",
"Ext.app.Controller",
"Ext.state.CookieProvider",
"Ext.util.Cookies",
"Ext.util.CSS",
"Ext.button.Cycle",
"Ext.data.Model",
"Ext.Date",
"Ext.grid.column.Date",
"Ext.form.field.Date",
"Ext.menu.DatePicker",
"Ext.picker.Date",
"Ext.dd.DD",
"Ext.dd.DDProxy",
"Ext.dd.DDTarget",
"Ext.util.DelayedTask",
"Ext.form.action.DirectLoad",
"Ext.direct.Manager",
"Ext.direct.Provider",
"Ext.data.proxy.Direct",
"Ext.data.DirectStore",
"Ext.form.action.DirectSubmit",
"Ext.form.field.Display",
"Ext.dom.Helper",
"Ext.dom.AbstractHelper",
"Ext.DomQuery",
"Ext.dd.DragDrop",
"Ext.dd.DragDropManager",
"Ext.dd.DragSource",
"Ext.dd.DragTracker",
"Ext.dd.DragZone",
"Ext.draw.Color",
"Ext.draw.Component",
"Ext.draw.CompositeSprite",
"Ext.draw.Sprite",
"Ext.dd.DropTarget",
"Ext.dd.DropZone",
"Ext.fx.Easing",
"Ext.grid.plugin.Editing",
"Ext.Editor",
"Ext.dom.Element",
"Ext.fx.target.ElementCSS",
"Ext.dom.AbstractElement",
"Ext.ElementLoader",
"Ext.data.Errors",
"Ext.util.Event",
"Ext.EventManager",
"Ext.EventObject",
"Ext.EventObjectImpl",
"Ext.direct.ExceptionEvent",
"Ext.Array",
"Ext.Function",
"Ext.is",
"Ext.JSON",
"Ext.Object",
"Ext.String",
"Ext.supports",
"Ext.grid.feature.Feature",
//"Ext.env.FeatureDetector",
"Ext.data.Field",
"Ext.form.FieldAncestor",
"Ext.form.FieldContainer",
"Ext.form.FieldSet",
"Ext.form.field.File",
"Ext.toolbar.Fill",
"Ext.util.Filter",
"Ext.layout.container.Fit",
"Ext.flash.Component",
"Ext.util.Floating",
"Ext.FocusManager",
"Ext.form.action.Action",
"Ext.util.Format",
"Ext.form.field.Field",
"Ext.form.Panel",
"Ext.grid.property.Grid",
"Ext.grid.column.Column",
"Ext.grid.plugin.DragDrop",
"Ext.grid.Panel",
"Ext.grid.View",
"Ext.util.Grouper",
"Ext.grid.feature.Grouping",
"Ext.grid.feature.GroupingSummary",
"Ext.resizer.Handle",
"Ext.util.HashMap",
"Ext.data.HasManyAssociation",
"Ext.layout.container.HBox",
"Ext.panel.Header",
"Ext.grid.property.HeaderContainer",
"Ext.grid.header.Container",
"Ext.grid.plugin.HeaderResizer",
"Ext.form.field.Hidden",
"Ext.util.History",
"Ext.form.field.HtmlEditor",
"Ext.Img",
"Ext.util.Inflector",
"Ext.data.JsonP",
"Ext.direct.JsonProvider",
"Ext.data.reader.Json",
"Ext.util.KeyMap",
"Ext.util.KeyNav",
"Ext.chart.Label",
"Ext.form.Labelable",
"Ext.Layer",
"Ext.chart.Legend",
"Ext.chart.LegendItem",
"Ext.chart.series.Line",
"Ext.form.action.Load",
"Ext.Loader",
"Ext.LoadMask",
"Ext.data.proxy.LocalStorage",
"Ext.chart.Mask",
"Ext.data.proxy.Memory",
"Ext.menu.Menu",
"Ext.menu.Item",
"Ext.menu.Manager",
"Ext.menu.Separator",
"Ext.window.MessageBox",
"Ext.util.MixedCollection",
"Ext.ModelManager",
"Ext.slider.Multi",
"Ext.data.NodeInterface",
"Ext.Number",
"Ext.grid.column.Number",
"Ext.form.field.Number",
"Ext.chart.axis.Numeric",
"Ext.util.Observable",
"Ext.data.Operation",
"Ext.toolbar.Paging",
"Ext.panel.Panel",
"Ext.picker.Color",
"Ext.form.field.Picker",
"Ext.picker.Time",
"Ext.chart.series.Pie",
"Ext.PluginManager",
"Ext.util.Point",
"Ext.direct.PollingProvider",
"Ext.ProgressBar",
"Ext.grid.property.Store",
"Ext.data.proxy.Proxy",
"Ext.tip.QuickTip",
"Ext.tip.QuickTipManager",
"Ext.chart.series.Radar",
"Ext.form.field.Radio",
"Ext.form.RadioGroup",
"Ext.data.reader.Reader",
"Ext.util.Region",
"Ext.dd.Registry",
"Ext.direct.RemotingEvent",
"Ext.direct.RemotingProvider",
"Ext.data.Request",
"Ext.resizer.Resizer",
"Ext.resizer.ResizeTracker",
"Ext.data.proxy.Rest",
"Ext.data.ResultSet",
"Ext.grid.feature.RowBody",
"Ext.grid.plugin.RowEditing",
"Ext.selection.RowModel",
"Ext.grid.RowNumberer",
"Ext.chart.series.Scatter",
"Ext.data.proxy.JsonP",
"Ext.dd.ScrollManager",
"Ext.selection.Model",
"Ext.chart.series.Series",
"Ext.chart.series.Gauge",
"Ext.data.proxy.Server",
"Ext.data.proxy.SessionStorage",
"Ext.Shadow",
"Ext.slider.Single",
"Ext.slider.Tip",
"Ext.util.Sortable",
"Ext.util.Sorter",
"Ext.data.SortTypes",
"Ext.toolbar.Spacer",
"Ext.form.field.Spinner",
"Ext.button.Split",
"Ext.resizer.Splitter",
"Ext.form.action.StandardSubmit",
"Ext.state.Stateful",
"Ext.state.Manager",
"Ext.state.Provider",
"Ext.dd.StatusProxy",
"Ext.data.Store",
"Ext.data.StoreManager",
"Ext.form.action.Submit",
"Ext.grid.feature.Summary",
"Ext.draw.Surface",
"Ext.draw.engine.Svg",
"Ext.tab.Tab",
"Ext.tab.Bar",
"Ext.view.TableChunker",
"Ext.layout.container.Table",
"Ext.tab.Panel",
"Ext.fx.target.Target",
"Ext.fx.target.CompositeElement",
"Ext.fx.target.CompositeSprite",
"Ext.fx.target.Element",
"Ext.fx.target.Sprite",
"Ext.TaskManager",
"Ext.util.TaskRunner",
"Ext.Template",
"Ext.grid.column.Template",
"Ext.form.field.Text",
"Ext.form.field.TextArea",
"Ext.toolbar.TextItem",
"Ext.util.TextMetrics",
"Ext.form.field.Time",
"Ext.tip.Tip",
"Ext.panel.Tool",
"Ext.toolbar.Toolbar",
"Ext.toolbar.Item",
"Ext.toolbar.Separator",
"Ext.tip.ToolTip",
"Ext.fx.target.Component",
"Ext.direct.Transaction",
"Ext.data.Tree",
"Ext.tree.Panel",
"Ext.data.TreeStore",
"Ext.tree.View",
"Ext.form.field.Trigger",
"Ext.data.Types",
"Ext.data.validations",
"Ext.layout.container.VBox",
"Ext.view.View",
"Ext.tree.plugin.TreeViewDragDrop",
"Ext.container.Viewport",
"Ext.view.Table",
"Ext.draw.engine.Vml",
"Ext.form.field.VTypes",
"Ext.data.proxy.WebStorage",
"Ext.window.Window",
"Ext.WindowManager",
"Ext.data.writer.Writer",
"Ext.data.reader.Xml",
"Ext.data.writer.Xml",
"Ext.XTemplate",
"Ext.XTemplateCompiler",
"Ext.XTemplateParser",
"Ext.ZIndexManager",
"Ext.data.XmlStore",
"Ext.data.JsonStore",
"Ext.data.JsonPStore",
"Ext.data.ArrayStore",
"Ext.data.NodeStore",
"Ext.grid.property.Property",
"Ext.panel.Table",
"Ext.layout.Layout",
"Ext.layout.container.Container",
"Ext.layout.component.Component",
"Ext.layout.component.AbstractDock",
"Ext.layout.component.Auto",
"Ext.layout.component.Body",
"Ext.layout.component.BoundList",
"Ext.layout.component.Button",
"Ext.layout.component.Dock",
"Ext.layout.component.Draw",
"Ext.layout.component.Editor",
"Ext.layout.component.FieldSet",
"Ext.layout.component.ProgressBar",
"Ext.layout.component.Tab",
"Ext.layout.component.Tip",
"Ext.layout.component.field.Field",
"Ext.layout.component.field.File",
"Ext.layout.component.field.HtmlEditor",
"Ext.layout.component.field.Slider",
"Ext.layout.component.field.Text",
"Ext.layout.component.field.TextArea",
"Ext.layout.component.field.Trigger",
"Ext.ShadowPool",
"Ext.state.LocalStorageProvider",
"Ext.selection.TreeModel",
"Ext.selection.CellModel",
"Ext.ux.CheckColumn",
"Ext.grid.Lockable",
"Ext.grid.LockingView",
"Ext.grid.feature.AbstractSummary",
"Ext.chart.Callout",
"Ext.chart.Highlight",
"Ext.chart.Navigation",
"Ext.chart.Shape",
"Ext.chart.Tip",
"Ext.chart.TipSurface",
"Ext.chart.theme.Theme",
"Ext.chart.theme.Base",
"Ext.chart.axis.Abstract",
"Ext.chart.axis.Radial",
"Ext.slider.Thumb",
"Ext.util.Memento",
"Ext.direct.Event",
"Ext.direct.RemotingMethod",
"Ext.fx.CubicBezier",
"Ext.fx.Manager",
"Ext.fx.Queue",
"Ext.fx.PropertyHandler",
"Ext.tree.ViewDropZone",
"Ext.tree.ViewDragZone",
"Ext.view.DragZone",
"Ext.view.DropZone",
"Ext.resizer.SplitterTracker",
"Ext.panel.Proxy",
"Ext.panel.DD",
"Ext.grid.header.DragZone",
"Ext.grid.ViewDropZone",
"Ext.util.ElementContainer",
"Ext.util.ProtoElement",
"Ext.util.Renderable",
"Ext.layout.Context",
"Ext.layout.ContextItem",
"Ext.util.Bindable",
"Ext.grid.PagingScroller"
];

3,打开之前建立的这个html,一切顺利的话,会看到网页上输出一大片清单内容,这便是遍历后的结果,复制,新建一个js文件,粘贴进去;

4,假设刚才保存的js文件叫ExtTips.js ,于是我们在自己需要智能提示的js文件的开头添加一句话:

1
///<reference path="ExtTips.js" />

当然还是要注意路径.

5,然后随意敲几个Ext…就会发现智能提示工作了~!
ExtJSTips

参考文章:
《Ext JS权威指南》节选:在Visual Studio中实现Ext JS智能提示

EXTJS4自学手册——EXT文件目录,本地加载文档,命名规范