forked from hjzheng/CUF_PPTs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path前端开发工具介绍.html
594 lines (514 loc) · 18.7 KB
/
前端开发工具介绍.html
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8">
<title>notepad++ & webstorm</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/night.css" id="theme">
<link rel="stylesheet" href="lib/css/zenburn.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h2>前端开发工具介绍</h2>
<h4 style="text-indent: 8em;">工欲善其事必先利其器</h4>
<p>BY 北河 and Hao Ju Zheng</p>
<p>github: <a href="https://github.com/hjzheng">https://github.com/hjzheng</a></p>
</section>
<section>
<section>
<h2>手枪 —— notepad++</h2>
<div>官方地址:<a href="http://notepad-plus-plus.org">http://notepad-plus-plus.org/</a></div>
<div>
使用方便,短小精悍。
</div>
<p>上可修改各种程序文件,下可修改各种配置文件。</p>
<p>亦可临时处理文本数据。</p>
</section>
<section>
<h2>优点</h2>
<ul class="fragment">
<li>开源免费</li>
<li>配置简单</li>
<li>编码功能强大</li>
<li>小而快</li>
</ul>
</section>
<section>
<h2>缺点</h2>
<ul class="fragment">
<li>仅支持windows</li>
<li>快捷键功能较弱</li>
<li>智能化程度低</li>
</ul>
</section>
</section>
<section>
<section>
<h2> notepad++ 配置</h2>
<p>
notepad++ 默认的配置已经足够使用,基本不需要进行很多的调整。
</p>
</section>
<section>
<h2>一个tab转4个空格设置</h2>
<div>设置——>首选项——>Tab Settings</div>
<figure>
<img src="./img/np-tab-to-four-space.png"/>
</figure>
</section>
<section>
<h2>简单的自动完成设置</h2>
<div>设置——>首选项——>auto-Completion</div>
<figure>
<img src="./img/np-open-auto-completion.png"/>
</figure>
</section>
<section>
<h2>主题设置</h2>
<div>设置——>语言格式设置</div>
<figure>
<img src="./img/np-themes.png"/>
</figure>
</section>
</section>
<section>
<section>
<h2>notepad++ 实用技巧</h2>
</section>
<section>
<h2>列选择</h2>
<p>默认快捷键:ALT+鼠标选择</p>
<figure>
<img src="./img/np-row-select.png"/>
</figure>
</section>
<section>
<h2>文件编码转换</h2>
<figure>
<img src="./img/np-encode.png"/>
</figure>
</section>
<section>
<h2>设置代码高亮</h2>
<figure>
<img src="./img/np-code-height.png"/>
</figure>
</section>
</section>
<section>
<section>
<h2> notepad++ 插件推荐</h2>
<p>
新版的已经集成了插件管理器,插件可以直接从插件管理器安装了。
</p>
</section>
</section>
<section>
<section>
<h2> Emmet(ZenCoding) </h2>
<p>
快速编写html的神器
</p>
<ul>
<li><a href="http://docs.emmet.io/">Emmet文档</a></li>
<li><a href="http://docs.emmet.io/cheat-sheet/">Emmet语法示例</a></li>
</ul>
</section>
<section>
<h3> notepad++ 更改 emmet快捷键 </h3>
<p>设置——>管理快捷键——>plugin commands</p>
<figure>
<img src="./img/np-emmet.png"/>
</figure>
</section>
</section>
<section>
<section>
<h2> TextFX </h2>
<p>
功能很强大编码排版软件
</p>
<figure>
<img src="./img/np-textfx.png"/>
</figure>
</section>
</section>
<section>
<section>
<h2> Tidy2 </h2>
<p>
格式化html
</p>
<figure>
<img src="./img/np-tidy2.png"/>
</figure>
<p>下载地址: <a href="https://npp-tidy2.googlecode.com/files/Tidy2_0.2.zip">https://npp-tidy2.googlecode.com/files/Tidy2_0.2.zip</a></p>
<p>FUCK GFW。</p>
</section>
</section>
<section>
<section>
<h2> Explorer </h2>
<p>一个文件浏览窗口,可以在里面创建文件,文件夹等。还可以快速定位当前打开的文件的文件夹。</p>
<figure>
<img src="./img/np-explorer.png"/>
</figure>
</section>
</section>
<section>
<section>
<h2>重机枪 —— WebStorm</h2>
<div>
火力强大。
</div>
<p>为前端而生,仅仅支持html+js+css是不够的,nodejs,coffeescript,angular亦不在话下。</p>
<p>上班打开,下班关闭。</p>
<div>官方地址:<a href="http://www.jetbrains.com/webstorm/">http://www.jetbrains.com/webstorm/</a></div>
</section>
<section>
<h2>优点</h2>
<ul class="fragment">
<li>跨平台</li>
<li>为前端设计</li>
<li>N多默认配好的小功能</li>
<li>高质量插件支持</li>
</ul>
</section>
<section>
<h2>缺点</h2>
<ul class="fragment">
<li>收费</li>
<li>重</li>
<li>配置项复杂</li>
<li>无中文支持</li>
</ul>
</section>
</section>
<section>
<section>
<h2>WebStorm 基础配置</h2>
<div>
默认配置基本足够,但毕竟针对英文的,所以到手还是要进行一些设置。
</div>
</section>
<section>
<h2>主题设置</h2>
<figure>
<img src="./img/ws-theme.png" width="80%"/>
</figure>
</section>
<section>
<h2>字体设置</h2>
<figure>
<img src="./img/ws-fonts.png" width="80%"/>
</figure>
</section>
<section>
<h2>行号设置</h2>
<figure>
<img src="./img/ws-line-number.png" width="80%"/>
</figure>
</section>
<section>
<h2>鼠标滚轮修改字体大小</h2>
<figure>
<img src="./img/ws-mouse-set-font.png" width="80%"/>
</figure>
</section>
</section>
<section>
<section>
<h2>WebStorm 基础配置二</h2>
<div>
还有版本控制和远程上传的功能。
</div>
</section>
<section>
<h2>git配置</h2>
<figure>
<img src="./img/ws-git.png" width="80%"/>
</figure>
</section>
<section>
<h2>GitHub配置</h2>
<figure>
<img src="./img/ws-github.png" width="80%"/>
</figure>
</section>
<section>
<h2>远程配置</h2>
<figure>
<img src="./img/ws-remote.png" width="70%"/>
</figure>
</section>
</section>
<section>
<section>
<h2>WebStorm 实用技巧</h2>
<div>
默认配置基本足够,但毕竟针对英文的,所以到手还是要进行一些设置。
</div>
</section>
<section>
<h2> 集成emmet功能</h2>
<figure>
<img src="./img/ws-emmet.png" width="80%"/>
</figure>
</section>
<section>
<h2> Refactor 重构功能</h2>
<p>默认快捷键:shift+F6</p>
<figure>
<img src="./img/ws-refactor.png"/>
</figure>
</section>
<section>
<h2>reformat 设置</h2>
<p>默认快捷键:Ctrl+Alt+L</p>
<figure>
<img src="./img/ws-reformatcode.png"/>
</figure>
</section>
<section>
<h2>列选择</h2>
<p>默认快捷键:ALT+鼠标选择</p>
<figure>
<img src="./img/ws-rol-select.png"/>
</figure>
</section>
<section>
<h2>local history</h2>
<figure>
<img src="./img/ws-locahistory.png"/>
</figure>
</section>
</section>
<section>
<section>
<h2>WebStorm 其余资料</h2>
<div>
<ul>
<li><a href="http://www.book.36ria.com/webstorm/index.html#index" target="_blank">webstorm入门指南</a></li>
<li><a href="https://github.com/Damao/Intellij-IDEA-F2E">IntelliJ-IDEA-F2E</a></li>
</ul>
<div style="margin-top:20px;">
IDEA前端群:149725975<br />(入群暗号:保证仅讨论前端编辑器)
</div>
</div>
</section>
</section>
<section>
<section>
<h2>砍刀 —— Chrome Developer Tools</h2>
<p>强大的调试和编辑功能,很难想想它仅仅是一个浏览器调试工具</p>
<div>官方地址:<a href="http://www.google.cn/chrome/">http://www.google.cn/chrome/</a></div>
</section>
<section>
<h2>优点</h2>
<ul class="fragment">
<li>跨平台</li>
<li>免费</li>
<li>速度快</li>
<li>调试功能强大,JS即改就生效和workspace</li>
</ul>
</section>
<section>
<h2>缺点</h2>
<ul class="fragment">
<li>console不支持多行模式</li>
</ul>
</section>
</section>
<section>
<section>
<h2>基本调试功能</h2>
<div>
具备其他浏览器调试插件的基本功能,这里只介绍其独有的功能
</div>
</section>
<section>
<h2>改变元素状态,显示伪类样式</h2>
<figure>
<img src="./img/cdt-elementstatus.png"/>
</figure>
</section>
<section>
<h2>CSS拾色器功能</h2>
<div>firebug可以通过插件支持</div>
<figure>
<img src="./img/cdt-colorpicker.png"/>
</figure>
</section>
<section>
<h2>CSS颜色格式切换(shift+click)</h2>
<figure>
<img src="./img/cdt-colorformat.png"/>
</figure>
</section>
<section>
<h2>查看dom元素上注册的事件</h2>
<div>firebug2.x已经支持该功能</div>
<figure>
<img src="./img/cdt-events.png"/>
</figure>
</section>
<section>
<h2>终端模拟器</h2>
<figure>
<img src="./img/cdt-emulation.png"/>
</figure>
</section>
</section>
<section>
<section>
<h2>JavaScript调试</h2>
<p>强大的调试功能,尤其是即改即生效和workplace功能</p>
<a href="http://zhenghaoju700.blog.163.com/blog/static/135859518201431910058160/">更多内容</a>
</section>
<section>
<h2>即改即生效</h2>
<p>不但可以既改既生效,还有历史修改记录</p>
<figure>
<img src="./img/cdt-localmodify.png"/>
</figure>
</section>
<section>
<h2>使用workplace关联本地代码</h2>
<p>在chrome中任何代码的修改会同步到本地代码</p>
<figure>
<img src="./img/cdt-workplace.png"/>
</figure>
</section>
<section>
<h2>JavaScript代码美化</h2>
<p>对压缩过的JS代码进行美化,更易于debug.(CSS也可以美化)</p>
<figure>
<img src="./img/cdt-format.png"/>
</figure>
</section>
</section>
<section>
<section>
<h2>Chrome Dev Tools常用快捷键</h2>
<p>Chrome Dev Tools不仅是一个调试工具,你也可以把它当做一个编辑器进行工作,所以熟练掌握这些快捷键是必要的</p>
<a href="http://zhenghaoju700.blog.163.com/blog/static/13585951820143257242344/">更多内容</a>
</section>
<section>
<h2>Ctrl + G (in source panel)</h2>
<p>快速定位到JavaScript文件某一行</p>
<figure>
<img src="./img/cdt-cd.png"/>
</figure>
</section>
<section>
<h2>Ctrl + O (in sources panel)</h2>
<p>在sources panel中查找文件</p>
<figure>
<img src="./img/cdt-co.png"/>
</figure>
</section>
<section>
<h2>Ctrl + Shift + O (in sources panel)</h2>
<p>在当前文件中查找成员</p>
<figure>
<img src="./img/cdt-cso.png"/>
</figure>
</section>
<section>
<h2>Ctrl + F (in sources panel)</h2>
<p>在当前文件中查找内容</p>
<figure>
<img src="./img/cdt-cf.png"/>
</figure>
</section>
<section>
<h2>Ctrl + Shift + F (in sources panel)</h2>
<p>在所有文件中查找内容</p>
<figure>
<img src="./img/cdt-csf.png"/>
</figure>
</section>
<section>
<h2>Ctrl + "+"/"-"</h2>
<p>修改dev tools内容字体大小</p>
</section>
</section>
<section>
<section>
<h2>匕首 —— 前端Code分享和记录利器</h2>
<p>在学习前端知识时,时常需要记录和实践,这时候下面的实时展示code运行结果工具派上用场</p>
<ul class="fragment">
<li><a href="http://jsfiddle.net/">jsfiddle</a></li>
<li><a href="http://jsbin.com/">jsbin</a></li>
</ul>
</section>
<section>
<h2>优点</h2>
<ul class="fragment">
<li>快速实践和记录知识</li>
<li>易于修改和分享</li>
<li>支持多种框架</li>
</ul>
</section>
<section>
<h2>缺点</h2>
<ul class="fragment">
<li>无法离线工作</li>
<li>不易进行复杂项目</li>
</ul>
</section>
</section>
<section>
<section>
<h2>使用jsfiddle</h2>
<p>这里以jsfiddle为例,先注册一个fiddle账号</p>
</section>
<section>
<h2>如何使用jsfiddle</h2>
<figure>
<img src="./img/jsfiddle-fiddle.png"/>
</figure>
</section>
<section>
<h2>我的jsfiddle</h2>
<div>地址:
<a href="http://jsfiddle.net/user/hjzheng/fiddles/">
http://jsfiddle.net/user/hjzheng/fiddles/
</a>
</div>
<figure>
<img src="./img/jsfiddle-myjsfiddle.png" style="height:500px;"/>
</figure>
</section>
</section>
<section>
<section>
<h2>谢谢观赏</h2>
<h3>2014-08-18</h3>
<p>如果你喜欢,请<a href="https://github.com/hjzheng/CUF_PPTs">star</a>我</p>
</section>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
var aa = 'aa';
Reveal.initialize({
history: true,
transition: 'linear',
progress: true,
math: {
// mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',
config: 'TeX-AMS_HTML-full'
},
dependencies: [
{ src: 'lib/js/classList.js' }
]
});
</script>
</body>
</html>