eclipse 使用

  • 自动换行
    Eclipse 使用系统内置的“ Text Editor ”做为文本编辑器,这个文本编辑器有一个问题,就是文本无法换行。这个问题在显示上给人们带来不少麻烦。
    终于有人忍不住开发了一个扩展插件 WordWrap ,这个插件非常小,但是安装这个插件以后就可以轻松实现文本编辑器的自动换行功能了。
    安装方法:
  1. 使用Eclipse 的自动升级功能,菜单栏选【 Help 】→【 install new Software】
  2. 点击Add按钮,在“ Name ”中填入“ wordwrap ”,“ URL ”中填入“ http://ahtik.com/eclipse-update”
  3. 然后按照提示进行安装完成就可以了
  4. 装完后在代码编辑界面点右键,会出现“Word Warp ”属性,将这个属性选上就可以实现自动换行了!
  • eclipse 控制台文本换行:
    控制台内容区域里右击 =》Preferences... =》选中 Fixed with console =》Maximum characters with: 里填入数字,比如:120。=》确认。

  • eclipse 快捷键(mac环境):

快捷键 动作
command + shift + F 格式代码
command + D 删除当前行
command + alt + 上(下)箭头 复制一行放到 当前行 上面(下面)
alt + 上(下)箭头 移动代码到指定的位置
ctrl + H 搜索
command + F 文件内搜索
选中文件夹,Search =》File...,scope选择“Selected resources” 文件夹内搜索指定字符
右击项目文件夹,Show In => Terminal 在Terminal直接显示项目路径
  • eclipse 修改主题(theme):
    Eclipse =》Preferences =》General =》Appearance =》Theme。

  • eclipse 调整字体大小:
    Eclipse =》Preferences =》General =》Appearance =》Colors and Fonts => Basic =》Text Font =》Edit... =》Size。

  • eclipse 设置背景色:
    Eclipse =》Preferences =》General =》Editors =》Text Editors => Appearance color options: =》Background color =》点击Color:设置(不选中System Default)。

  • eclipse 打开自动编译:
    Project =》选中 Build Automatically。

  • eclipse 如何重置窗口布局:
    Window =》Perspective =》Reset Perspective... =》Yes。

  • Eclipse IDE for Java Developers 默认安装位置:/Users/[用户名]/eclipse/java-neon/Eclipse.app,双击即可打开。
    Eclipse IDE for Java EE Developers 默认安装位置:/Users/[用户名]/eclipse/jee-neon/Eclipse.app,双击即可打开。
    建议安装 Java EE 版本,功能更多。
    Eclipse IDE for Java Developers 的 Eclipse 版本没有 Server 选项,得下载 Java EE 版本的 Eclipse:Eclipse IDE for Java EE Developers

  • eclipse EE 配置 tomcat:
    eclipse => preferences => server => runtime environments => 选择要配置的服务器 => 指定服务器安装路径 => finish

原文地址:https://www.cnblogs.com/cag2050/p/6827787.html