Eclipse的使用总结
Eclipse是一种可扩展的开放源代码的IDE。下载:http://eclipse.org/
MyEclipse是在Eclipse基础上追加的功能性插件,对插件收费;在WEB开发中提供强大的系统架构平台
A. 点击虫子后面的绿色内在三角形按钮
B. 点击Run菜单下的run。也可以使用快捷键Ctrl+F11
C. 选择要运行的文件或者在要运行的文件内容中,右键 – Run as - Java Application
视窗 每一个基本的窗体被称为视窗
PackageExplorer 显示项目结构,包,类,及资源
Outline 显示类的结构,方便查找,识别,修改
Console 程序运行的结果在该窗口显示
Problems 显示所有语法及错误所在的位置
Hierarchy 显示Java继承层次结构,选中类后F4
视图 是由某些视窗的组合而成的
Java视图
Debug视图
去掉默认注释:window – Preferences – Java – Code Style – Code Templates
行号的显示:代码区域的最左边的空白区域,右键 – Show Line Numbers打勾
行号的隐藏:代码区域的最左边的空白区域,右键 – Show Line Numbers 去掉勾
字体大小及颜色:
Java代码区域的字体大小和颜色:window – Preferences – General – Appearance – Colors And Fonts – Java修改 – Java Edit Text Font
控制台:window – Preferences – General – Appearance – Colors And Fonts – Debug – Console font
其他文件:window – Preferences – General – Appearance – Colors And Fonts – Basic – Text Font
窗体被调乱了可以重重:window – Reset Perspective
控制台找不到:Window – Show View – Console
查看源码:选中类名(F3或者Ctrl+鼠标点击)
打开一个类的所有方法和数据的快捷方式:ctrl+o
搜索:alt+shift+r
自动生成无参构造方法:代码区域右键–source–Generate Constructors from Superclass
快捷键:shift+alt+s+c
自动生成有参构造方法:代码区域右键–source–Generate Constructors using fields.. – finish
快捷键:shift+alt+s+o
自动生成get/set方法:代码区域右键–source–Generate Getters and Setters
快捷键:shift+alt+s+r
F8 执行到下一个断点 假如没有的话,执行完;
Debug 过程中 ,能够动态修改变量的值
Ctrl+shift+i 查看表达式结果
相关文章
- Eclipse/MyEclipse Java注释模板设置详解
- Eclipse快捷键与使用技巧总结
- 总结eclipse中安装maven插件
- Eclipse下svn的创建分支/合并/切换使用
- JAVA Eclipse打开报错failed to load the jni shared library怎么办
- eclipse查看源码失败总结
- Eclipse下运行启动Heritrix1.14.4
- eclipse下使用cygwin直接运行shell文件配置
- eclipse如何修改dynamic web module version
- java+win7+eclipse+Maven+sikuli 配置总结---图形脚本语言
- 【学习总结】Eclipse常用快捷键
- what is the location of js when using run as server in Eclipse
- Atitit.eclipse 4.3 4.4 4.5 4.6新特性
- Atitit org.eclipse.jdt 的ast 架构 Eclipse JDT API spec
- atitit.eclipse 新特性总结3.1--4.3
- Eclipse — 导包异常总结《I》
- Eclipse-eclipse导入新项目后,运行时找不到主类解决办法
- eclipse生成【带有外部jar包】的java可执行jar包
- 将 Android* x86 NDK 供 Eclipse* 而移植 NDK 演示示例应用程序
- Maven Eclipse
- eclipse启动提示he Eclipse executable launcher was unable to locate its companion shared library. 时怎么办