窗口布局:

不同的項(xiàng)目對應(yīng)不同的窗口布局。即打開透視圖,
關(guān)閉當(dāng)前窗口布局
Window – Close perspective
1、設(shè)置字體大小:
Window --> Preferences --> General --> Appearance --> Colors and Fonts --> Basic --> Text Font --> Change
2、Package Explorer
打開
Window – Show View – Package Explorer
改變包的組織結(jié)構(gòu)
在package Explorer窗口中使用箭頭
package presentation中選擇hieiarchical
3、快捷鍵:
Ctrl+Shift+F 格式化代碼
Ctrl+Shift+O 自動(dòng)導(dǎo)入
Ctrl+/ 添加行注釋
Ctrl+Shift+/ 添加塊注釋
Alt+/ 彈出提示選項(xiàng)
Ctrl+Shift+T 查看類的源代碼
Ctrl+Shift+H 查看類的繼承關(guān)系,輸入類名(選中類名,按F4)
Ctrl+F 查找
4、調(diào)試:
雙擊行號(hào)設(shè)置斷點(diǎn)
按F6逐行執(zhí)行。
按F8調(diào)到下一個(gè)斷點(diǎn),進(jìn)入函數(shù)內(nèi)部
5、編碼格式:
Window-->Preferences-->General
- 提高M(jìn)yEclipse的打開速度
Editors-->File Assosiations右邊File types選擇*.JSP在下方Associated editors:選擇MyEclipse JSP Editor - 更改編碼格式(文件打開中文亂碼)
Content Types-->Text-->JSP選中*.jsp(locked)在下方輸入utf-8點(diǎn)擊Update
Workspace右側(cè)Text file encoding選擇Other:UTF-8
建立新文件的編碼格式
MyEcipse-->Files and Editors-->JSP右邊Encoding:UTF-8
Web-->JSP Files-->右邊Encoding設(shè)置為ISO 10646/Unicode(UTF-8),點(diǎn)擊OK