zoukankan      html  css  js  c++  java
  • Eclipse 介绍

    • 设置背景的插件: Darkest Dark Theme

    • 添加 properties 插件: Properties Editor

    • Git 插件: Egit

    • 常用快捷键
      command + 1 : 代码提示
      contrl + shift + F: 代码格式化
      option + / : 自动补全
      command + option + s : 快速生成 getter, setter, 构造函数等
      command + shift + f : 代码格式良好
      command + 单击 : 查看源代码
      command + / : 添加注释
      command + d : 删除当前行
      command + control + / : 添加多行注释
      command + control + : 取消多行注释
      command + alt + 向下箭头 : 复制当前行到下一行
      command+ shift + x: 小写转成大写
      command + ,: 查看 preference
      command + shift + T: 通过搜索,查看源码 (open Type)
      command + shift + R: open Resource
      command + T: 查看接口的实现类
      ctrl + shift + R: 快速查找文件
      command + K: 选中一个变量, 光标就会自动定位到下一个变量被使用的地方,也就是“Find+Next”
      shift + tab: 将代码整体左移
      alt + shift + A: 列编辑(toggle block selection)

    Eclipse 初级配置

    1. 统一工作空间编码,设置为 "UTF-8"

    2. JSP 文件设置编码为"UTF-8"

    3. 修改字体

    4. 添加系统中的 JDK


    Eclipse 常见问题

    1. 如何在 Eclipse 下方显示 Servers 窗口

    解决方案:

    2. 如何设置 eclipse 右键 new 的菜单

    解决方案:

    3. 新建 jsp 文件, 出现 "the superclass 'javax.servlet.httpServlet' was not found on the Java Build Path"提示

    解决方案:



    **参考资料:** - [JavaWeb 视频教程](https://www.bilibili.com/video/av12751541/#page=3) - [eclipse怎么添加server窗口](http://www.tuxi.com.cn/viewb-30922-309221911.html) - [如何设置 eclipse 右键 new 的菜单](http://www.cnblogs.com/shindo/p/7089141.html) - [the superclass "javax.servlet.httpServlet"](https://stackoverflow.com/questions/38991878/the-superclass-javax-servlet-httpservlet-was-not-found-on-the-java-build-path) - [Mac系统下 Eclipse 代码自动联想功能](http://blog.csdn.net/kimsoft/article/details/52778282) - [ Eclipse编辑Spring配置文件xml时自动提示类class包名](http://blog.csdn.net/hh775313602/article/details/70176531) - [Eclipse 修改代码提示框颜色](http://www.cnblogs.com/lcchuguo/p/5340967.html) - [Eclipse 修改代码提示快捷键](https://www.cnblogs.com/bluestorm/archive/2013/03/19/2968823.html) - [EclEmma 测试覆盖率工具](https://www.cnblogs.com/Ming8006/p/5811425.html)
  • 相关阅读:
    linux安装python串口工具pyserial遇到不能成功导入的问题
    yum rpm apt-get wget 辨析
    系统时间不一致导致memcached的session不共享
    ERROR: transport error 202: bind failed: Address already in use
    The user specified as a definer ('root'@'%') does not exist
    IE比Chrome强的一个地方
    电脑突然死机,系统日志记录事件ID=6008
    mysql 查询多个id
    tomcat登陆WEB显示无权限问题&& tomcat无限循环启动问题
    MySql中把一个表的数据插入到另一个表中的实现代码
  • 原文地址:https://www.cnblogs.com/linkworld/p/7567971.html
Copyright © 2011-2022 走看看