eclipse
来源:互联网 发布:伤城影评知乎 编辑:程序博客网 时间:2024/05/23 18:31
1.工程导入
http://v.ku6.com/show/LlpGiWXVi59AwlLa.html
import->General->Exising Projects into workespace->next->Browse->找到文件夹-》finish
2.取消eclipse代码自动换行
每次用Eclipse自带的Ctrl+shift+f格式化代码时,如果原来的一行代码大于80列,Eclipse就会自动换为多行,这点个人感觉不是很舒服.
我们可以通过以下方式进行修改:
1、preferences->Java->Code Style->Code Formatter->Show... ,打开之后,选择“Line Wrapping”选项卡,在“Maximun line width”指定大于多少列时换行。
2、还是在“Line Wrapping”选项卡中,能过选择"Line Wrapping policy"可以指定构造函数、方法体等的换行情况。
备注:SUN推荐的编码风格默认是80列换行。
3.eclipse显示行号
Window -- Prefences -- General -- Editors -- Text Editors -- show line numbers
4.改变字体颜色
改变字体颜色
windows->Preferences->Java->Editor->Syntax Coloring
右边选择Java 然后可以自由选择颜色了
改变背景颜色
windows->Preferences->General->Editor->Text Editors
右边选择Appearance color options
选Background color 选择背景颜色
选Current line highlight 来改变 当前选中行 的颜色
配色方案详细following:
Annotations(注释): 107, 147, 186 浅蓝色
Deprecated members(不建议使用的成员): 0, 0, 0
Fields(字段): 128, 0, 128 紫色
KeyWord 'return'(关键字'return'): 255, 0, 0 红色
Keyword excluding 'return'(除了关键字以外的return): 255, 128 ,0 橙色
Local variable declarations(局部变量声明): 128, 128, 128 灰色
Method declarations(方法声明): 255, 128, 64 橙色
Method(方法): 0, 48, 96 暗浅蓝色
Operators and brackets(运算符与方括号): 255, 128, 0 橙色
Others(其他): 96 153, 0 深绿色
Static fields(静态字段): 33, 0, 189 深蓝色
Static Method invocations(静态方法调用): 77, 166 255 天蓝色
Strings(字符串): 132, 26, 238 中天蓝色
Type variables(类型变量): 128, 0, 25 红罗色
第二方案
改变背景颜色(黑底背景的设置)
windows->Preferences->General->Editor->Text Editors
右边选择Appearance color options
选Background color 选择背景颜色
选Current line highlight 来改变 当前选中行 的颜色
配色方案详细following:
Annotations(注释): 107, 147, 186
Deprecated members(不建议使用的成员): 0, 0, 0
Fields(字段):128,255,0 绿色
KeyWord 'return'(关键字'return'): 255, 0, 0 红色
Keyword excluding 'return'(除了关键字以外的return): 255,80, 0 深深橘色
Local variable declarations(局部变量声明): 70,140,179 深蓝色
Method declarations(方法声明): 247,197,39 淡橘色
Method(方法): 241,196,54 深淡橘色
Operators and brackets(运算符与方括号): 255, 128, 0 深橘色
Others(其他): 126, 202, 0 淡绿色
Static fields(静态字段): 128,255,0 绿色
Static Method invocations(静态方法调用): 77, 166 255
Strings(字符串): 89,196,196 墨蓝色
Type variables(类型变量): 222, 0, 25 红色
其他色彩配置参考: http://www.fengfly.com/plus/view-173150-1.html
5.eclipse 改变字体大小
窗口(Window)-首选项(Preferences)-常规(General)-外观(Appearence)-颜色与字体(Colors And Fonts),在右边的对话框里选择Java - Java Editor Text Font,点击出现的修改(Change)按钮,可以设置显示在在主窗体中程序的字体大小,设置完之后点击右下角的应用(Apply),最后点击确定(OK)即可。
- eclipse
- eclipse
- Eclipse
- Eclipse
- Eclipse
- Eclipse
- Eclipse
- eclipse
- eclipse
- Eclipse
- eclipse
- Eclipse
- Eclipse
- Eclipse
- Eclipse
- Eclipse
- eclipse
- eclipse
- memcached监控工具
- 八年畜牧专业学习,一朝毕业入职新浪。
- 设置窗体透明 隐藏任务栏 与全屏显示 .
- Application Fundamentals 应用程序基本原理
- javaw.exe - 应用程序错误
- eclipse
- android的theme的用法
- EM算法介绍
- python 字符串转数组
- 为PE文件添加数字签名 .
- shell $() 与${} 的语法
- 结合SyntaxHighlighter给KindEditor3.5.5添加[插入源代码]自定义组件
- Linux学习:内核访问I/O资源的方法
- 数据库中group by和having语法使用详解