eclipse的概述 eclipse是一种可扩展的开发源代码的IDE eclipse 的特点描述 免费 纯java语言编写 免安装 扩展性强 Eclipse的基本使用 编译: 自动编译,在保存的那一刻已经编译成功了! 运行: 1)点击绿色内在三角形按钮(小虫子旁边按钮) 2)点击Run菜单下的run,也可以使用Ctrl+F11 3)选择要运行的文件或者在要运行担当文件内容中,右键->run as->java Application即可 4)看到console 即可,他就是Eclipse自带的控制台 eclipse汉化及语法检查 使用dropins安装插件 dropins中放入eclipse_cn汉化版 eclipse基本使用: 1)字体大小及颜色 a:java代码区域的字体大小和颜色 Window --Preferences -- General --Appearance --Colors and Fonts --Java --javaEdit TestFond b:控制台 Window --Preferences -- General --Appearance --Colors and Fonts --Debug --Console font c:其他文件 Window --Preferences -- General --Appearance --Colors and Fonts --Basic --Test Font 2)窗体乱了: Window -- Reset Perspective 3)控制台找不到了 Window --Show View -Console 快捷键 1:alt + / 内容辅助键 1)main 方法 main +alt+/ 回车即可 2)输出语句 syso +alt+/ 3)提示作用。 2:Ctrl+shift+f:格式化 3:Ctrl+shift+o 导入包: 4:注释: 1)单行注释: Ctrl+/,取消注释再来一次 2)多行:Ctrl+shift+/,取消Ctrl+shift+\ 5:代码上下移动 选中代码,alt+上/下键 6:查看源码 选中类名(F3或者Ctrl+鼠标点进去 ) 7:自动提供构造方法 a:无参构造方法: 在代码区域右键 -- source --Generate Constructors from Superclass b:有参构造方法: 在代码区域右键 -- source --Generate Constructors using Fields..
|