Eclipse配置

本文详细介绍如何在Eclipse中进行各种实用配置,包括JVM内存显示、字体大小调整、UTF-8编码设置、安装Resin插件、配置Maven及Git等,并提供了创建Maven Web项目、安装SVN插件等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.显示JVM内存使用情况

Window -> Preferences -> General -> Show heap status











2.设置字体大小

Window -> Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> Text Font 。 Edit 设置为“小四”

3.设置UTF8编码格式

Window -> Preferences ->  General -> Editors -> Text Editors -> Spelling。  Encoding设置为UTF-8

Window -> Preferences -> General -> Workspace。Text file encoding 设置为UTF-8

Window -> Preferences -> Web -> JSP Files。 Encoding设置为UTF-8

Window-> Preferences->General->Content Types->Text->Java Properties File->Default Encoding 设置为UTF-8,Update

4.安装resin插件

Window -> Preferences -> Server -> Runtime Environment。Add -> Show additional server adapters 找到Resin

5.配置resin或Apache Tomcat服务器

Window -> Preferences -> Server -> Runtime Environment。Add  选择Resin 或 Apache

6.配置maven

Window -> Preferences -> Maven -> Installations。add 添加maven 安装目录

Window -> Preferences -> Maven -> User Interface。在Open XML page in the POM editor by default 前面打勾

Window -> Perferences -> Maven。在 Download Artifact Sources,Download Artifact JavaDoc和Update Maven projects on statup前面打勾

7.配置git

Window -> Preferences -> Team -> Git -> Configuration。Add Entry :Key填email,Value填写Git邮箱地址,Key填Name,Value填写GitHub用户名

8.安装SVN插件

Help -> Eclipse Marketplace。Find输入Subversion,选择Subversionr安装,这种方式不推荐,网络总是连接超时

Luna:版本的http://download.eclipse.org/releases/luna/

Mars:版本的http://download.eclipse.org/releases/mars/

下面以Mars版本的为例子,说明安装方法:

To install:

  1. On main menu, choose Help > Install New Software. The available Software dialog appears.
  2. In the Work with list, select Mars - http://download.eclipse.org/releases/mars/. A list of software packages appears.
  3. Expand the Collaboration node, scroll the list and select Subversive features
  4. Check other options in the dialog as desired and click the Next button. The Install Details screen appears in the dialog.
  5. Click the Next button, accept the license and click Finish. Subversive will download and install.
  6. It is recommended to accept the option to restart Eclipse.
SVN安装完成重启后,点击Window -> Preferences -> Team -> SVN弹出svn connector,选择一个版本安装


9.安装Gradle插件

在 Eclipse Marketplace中安装Gradle Integeration for Eclopse 3.7.1.RELEASE失败,在Mar.1 Release(4.5.1)和Luna版本第一次尝试均失败,第二次于2015/12/5周六,公司网络还可以的情况下成功!

在Help -> Install New Software中add的Name输入gradle,Location输入http://dist.springsource.com/release/TOOLS/gradle,会出现一个错误,忽略后安装成功。

10.Project Facets

在项目上右键点击properties可以看到Project Facets,可以在里面配置编译的版本号。

11.svn connector地址

https://www.polarion.com/products/svn/subversive/download

12.创建Maven web 项目,Java Resources资源文件下只有src/man/resources 资源文件夹,没有另外三个

在项目上右键选择properties,然后点击 java build path,在Libraries下,编辑 JRE System Library,选择jre就可以了。

13.TestNG

Help -> Eclipse Marketplace。Find输入TestNG,找到TestNG for Eclipse

14.MarkDown

Help -> Eclipse Marketplace。Find输入markdown,找到 Markdown Text Editor

Window -> Show View -> Markdown View

File -> new -> File 以.md为扩展名创建markdown文件

保存文件后,右键WikiText可以转换为其他格式文件

Markdown Editor作为txt的默认编辑器Preferences -> General -> Editors  -> File Associations,找到*.txt,在下面Associated editors选择Markdown Editor 点击Default。

15.latex

Help -> Eclipse Marketplace。Find输入latex,找到Texlipse

16.UML Designer

Help -> Eclipse Marketplace。Find输入UML Designer,找到UML Designer5.0

17.GitHub Flavored MarkDown Viewer Plugin

Help -> Eclipse Marketplace。Find输入GFM

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值