myeclipse的一些设置

时间:2023-03-10 02:50:57
myeclipse的一些设置

常用快捷键

Ctrl + Shift + R 搜索文件
Ctrl + Shift + T 搜索类型
Ctrl + O 搜索成员

智能提示

Windows > Preferences > General > Keys > Content Assist 
在此设置智能提示快捷键 
Windows > Preferences > Java > Editor > Content Assist > Auto activation triggers for Java:
在此将智能提示弹出条件设置为 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.

在Workspace之间共享Eclipse的设置

拷贝${workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings。

设置字体

Windows > Preferences > General > Appearance > Color and Fonts > Basic > Text Font > Edit...

启动程序前自动保存

Windows > Preferences > Run/Debug > Launching > Save required dirty editors before launching > Always

Windows > Preferences > Server > Launching > Save dirty editors before starting the server > Always

启动Web应用时不使用Eclipse内置浏览器而是打开IE,Chrome或Firefox

Windows > Preferences > General > Web Browser > Use exernal web browser > Firefox(Internet Explorer,Chrome)

延长Server启动时间(缺省时间45秒太短)

双击Server打开属性页在Timeouts部分中修改设置

去除Console窗口输出长度限制

Windows > Preferences > Run/Debug > Console > Limit console output
缺省情况下输出长度有80000字符的限制,将Limit console output的勾去掉即可无限制输出。
adjusting eclipse console size

粘贴字符串时自动加上转义字符\

Window > Preferences > Java > Editor > Typing > Escape text when pasting into a string literal
勾选Escape text when pasting into a string literal。
MyEclipse代码进行格式化的快捷键是Shift + Ctrl + F,但每次都按很麻烦,于是可以通过设置代码在保存时自动进行格式化 。
解决办法:
1、打开Windows——>“Preference(首选项)”
2、在弹出的“Preference(首选项)”窗口界面,找到左侧java导航 ---->“editor ”----->“save actions”。
3、在右侧“Save Actions”里找到“Perform the selected actions on save”前打上√,点击“ok”保存。