eclipse常用操作

eclipse文件说明:
/opt/eclipse/:包含工作空间的默认配置
~/.eclipse/:包含工作空间的默认配置
~/workspace/.metadata/:包含工作空间的配置
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/:工作空间配置
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs: wordwrap.enabled=true自动换行
~/workspace/.metadata/.log:日志
~/.p2/ 基本配置:
快捷查找: window->perferences->搜索框搜索
utf8: window->perferences->general->workspace
列边际线: window->perferences->general->editors->text editors
字体: window->perferences->general->Appearance->colors and fonts
运行设置: window->perferences->Run/Debug->Launching
快捷键设置: window->perference->general->keys
文件的默认打开方式: window->perference->general->Editors->File Associations选中*.sh,然后再下方设置默认的编辑器
tab替换: window->perferences->general->editors->text editors
xml-tab替换: Windows > Preferences > XML > XML Files > Editor > xxx
选中,相同变量高亮: windows-> preferences->java->Editor->Mark Occurences
滚动条: windows-> preferences->PyDev>编辑器>概述标尺Minimap 异常弹窗处理:删除maven插件
把C:\Users\Administrator\.m2\repository\org\apache\maven\plugins下的文件删除 java模板设置,不要换行,出现tab,
https://stackoverflow.com/questions/3754405/best-eclipse-code-formatters/18417393
https://github.com/google/styleguide
https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml save格式化
java
Windows->Preferences->java->Editor->Code style->Formatter->google
window->perferences->java->Editor->Save Actions
python
Windows->Preferences->Pydev->Editor->Code Formatter->autopep8
Windows->Preferences->Pydev->Editor->save Actions->auto-format选中
python
https://blog.csdn.net/sunylat/article/details/53857596 java方法提示,设置
Window > Preferences > Java > Editor > Content Assist->Auto Activation triggers for java
把“.”修改成".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" 网络代理配置
window->perferences->general->network connection
注意:cleared the proxy settings for SOCKS protocol(可能导致install software失败)
https://stackoverflow.com/questions/5857499/how-do-i-have-to-configure-the-proxy-settings-so-eclipse-can-download-new-plugin 安装插件的注意事项:
把【connect all update sites during install to find required software】的勾选去掉,否则在安装新插件时会联网寻找所有可能的更新站点搜索,导致安装时间不可预估,并可能导致安装失败。 添加shell的编辑器:
http://sourceforge.mirrorservice.org/s/sh/shelled/shelled/ShellEd%202.0.3/
下载net.sourceforge.shelled-site-2.0..zip
help->install new software->添加zip文件 关联shell解释器(未尝试过,待验证)
解释器下载地址
http://win-bash.sourceforge.net/
http://unxutils.sourceforge.net/ 安装python解释器
xxx eclipse安装python插件
help->install new software
location: http://pydev.org/updates eclipse关联python解释器
window->perferences->pyDev->Interpreters->python Interpreter
设置字符长度限制
pydev->editor->code style->code formatter设置parameters: --max-line-length= eclipse安装javafx插件
help->install new software
http://download.eclipse.org/efxclipse/updates-released/2.3.0/site 安装java Scene Builder
xxx 关联java Scene Builder
window->references->javafx->关联java scene builder安装路径 安装maven
xxx eclipse关联maven
window->references->Maven->Installations->add eclipse配置maven
添加window->references->Maven->lifecycle-mapping-metadata.xml
window->references->Maven->User Settings 安装markdown
插件包:https://github.com/winterstein/Eclipse-Markdown-Editor-Plugin/releases 安装tomcat
tomcat环境变量配置
CLASS_APTH:添加
%TOMCAT_HOME%\bin;%CATALINA_HOME%\lib TOMCAT_HOME
CATALINA_BASE
CATALINA_HOME
D:\Program Files\Apache Software Foundation\Tomcat 8.5 eclipse关联tomcat
Window -> Preferences -> Server -> Runtime Environmants -> add -> apache Tomcat(根据安装版本 选择 版本)
eclipse添加变量
window->java->build path->classpath variable->TOMCAT_HOME eclipse创建web项目:new Dynamic web project 将eclipse web项目发布tomcat目录下:
清空eclipse下的tomcat server的app:
clean tomcat working directory
设置server locations:
打开eclipse server配置:双击servers视图中的tomcat server
修改配置server locations为:
use tomcat installation
deploy path: webapps 将git-maven项目构建为eclipse-maven项目
执行mvn eclipse:eclipse后,import Existing Project 将git中的普通项目构建为eclipse项目
方式一:直接新建项目,正确填写project name和project directory即可。例如:project name: am, directory: E:\eclipse-workspace\first_path\am
方式二:创建一个同类型的项目,再讲git中的项目源码copy到eclipse项目文件夹中。
方法三:利用eclipse自带的git repositories导入git项目。 导入项目
import->Existing Projects into workspace
选中文件夹,eclipse会自动将所有的项目导入 导入maven子项目
import->Existing Maven Projects git项目->eclipse项目
show git视图
右击import projects
将导入的项目,构建为eclipse项目:mvn eclipse:eclipse maven dependencies缺失
ctrl+shift+.classpath
添加:
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>

搭建eclipse开发环境的更多相关文章

  1. 【嵌入式硬件Esp32】ESP32学习之在windows下搭建eclipse开发环境

    一.所需工具 由于项目要用ESP32模块进行开发,折腾了下集成开发环境,现将过程记录下来,以便需要的人使用.其中需要的有交叉编译工具,esp-idf示例代码以及C/C++版的eclipse. 交叉编译 ...

  2. hadoop实战–搭建eclipse开发环境及编写Hello World

    原创文章,转载请注明: 转载自工学1号馆 欢迎关注我的个人博客:www.wuyudong.com, 更多云计算与大数据的精彩文章 1.在eclise中安装hadoop的插件并配置 在上篇文章<编 ...

  3. 配置Hadoop的Eclipse开发环境

    前言 在先前的文章中,已经介绍了如何在Ubuntu Kylin操作系统下搭建Hadoop运行环境,而现在将在之前工作的基础上搭建Eclipse开发环境. 配置 开发环境:Eclipse 4.2 其他同 ...

  4. 第三篇:配置Hadoop的Eclipse开发环境

    前言 在先前的文章中,已经介绍了如何在Ubuntu Kylin操作系统下搭建Hadoop运行环境,而现在将在之前工作的基础上搭建Eclipse开发环境. 配置 开发环境:Eclipse 4.2,其他同 ...

  5. 搭建Android开发环境附图详解+模拟器安装(JDK+Eclipse+SDK+ADT)

    ——搭建android开发环境的方式有多种,比如:JDK+Eclipse+SDK+ADT或者JDK+Eclipse+捆绑好的AndroidSDK或者Android Studio. Google 决定将 ...

  6. 在Eclipse下搭建Android开发环境教程

    我们昨天向各位介绍了<在NetBeans上搭建Android SDK环境>,前不久也介绍过<在MyEclipse 8.6上搭建Android开发环境>, 都受到了读者的欢迎.但 ...

  7. 搭建java开发环境、使用eclipse编写第一个java程序

    搭建java开发环境.使用eclipse编写第一个java程序 一.Java 开发环境的搭建 1.首先安装java SDK(简称JDK). 点击可执行文件 jdk-6u24-windows-i586. ...

  8. 【转】使用Eclipse搭建Python开发环境

    因为要进行自动化测试,所以要搭建Python开发环境.这里将使用Eclipse+pyDev进行搭建,在此作为笔记记录下来. 需要的组件: 1.Eclipse SDK 3.7(这里将不再叙述Eclips ...

  9. Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)

    一.搭建Android开发环境 准备工作:下载Eclipse.JDK.Android SDK.ADT插件 下载地址:Eclipse:http://www.eclipse.org/downloads/ ...

随机推荐

  1. 转:区块链开发(一)搭建基于以太坊go-ethereum的私有链环境

    区块链开发(一)搭建基于以太坊go-ethereum的私有链环境 wo541075754 · 2016-11-07 13:00:03 · 3730 次点击 · 预计阅读时间 3 分钟 · 约1小时前  ...

  2. 关于SQL Server 无法生成 FRunCM 线程(不完全)

    在五一的前一天,准备启动数据库完成我剩下的项目代码时,数据库配置管理器出现了一个让人蛋疼的问题sqlserv配置管理器出现请求失败或服务器未及时响应关于这个问题的处理方法,经过我两个小时的百度,网上对 ...

  3. Mysql 性能优化5【重要】数据库结构优化

    数据库设计的步骤 我们大多使用mysql 设计三范式 设置时区  

  4. SpringMVC拦截器配置

    1.首先在springmvc.xml中添加配置 <mvc:interceptors> <mvc:interceptor> <mvc:mapping path=" ...

  5. css-去掉IE浏览器自带×号

    1.去除IE输入框的叉号 /* 去除IE输入框的叉号 */ ::-ms-clear, ::-ms-reveal{ display:none; } 2.前端多行展现代码,多余部分使用...代替 div{ ...

  6. PAT 乙级 1077 互评成绩计算 (20)

    在浙大的计算机专业课中,经常有互评分组报告这个环节.一个组上台介绍自己的工作,其他组在台下为其表现评分.最后这个组的互评成绩是这样计算的:所有其他组的评分中,去掉一个最高分和一个最低分,剩下的分数取平 ...

  7. 字符串分割split()

    知识讲解: split() 方法将字符串分割为字符串数组,并返回此数组. 语法: stringObject.split(separator,limit) 参数说明: 注意:如果把空字符串 (" ...

  8. 各种http报错的报错的状态码的分析

    HTTP常见错误 HTTP 错误 400 400 请求出错 由于语法格式有误,服务器无法理解此请求.不作修改,客户程序就无法重复此请求. HTTP 错误 401 401.1 未授权:登录失败 此错误表 ...

  9. [UE4]虚幻4 spline组件、spline mesh组件的用法

    最近公司项目需要,把这两个东东好好看了下.不得不说,这两个组件还是非常方便的,但是相关的介绍.教程却非常的少.它们概念模糊,用法奇特,我就总结下吧. 首先,先要明白spline component.s ...

  10. 您真的会修改Active Directory域控制器计算机名称吗

    从我开始做微软这行开始,就经常听说某某公司由于什么原因需要修改Active Directory域控制器计算机名称,但发现好多公司都是直接修改,导致了各种奇葩的问题,今天就给大家推荐一个修改Active ...