eclipse初始化配置

来源:互联网 发布:java编写工具 编辑:程序博客网 时间:2024/06/11 10:57

1.修改字体windows-->prefereces,General-->Appearance-->Colors and Fonts,Base->base font->Edit.

2.文本文件编码Window -> Preferences -> General -> Workspace -> Text file encoding -> Other:

jsp文件编码Window -> Preferences -> Web -> JSP Files -> Text file encoding-> Other:

     properties文件编码Window -> Preferences -> General -> Content Types -> Text -> Java Properties File -> UTF-8 -> Update -> OK

3.代码自动补全java->Editor->Contant Assist ._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

 js文件自动提示Window -> Preferences -> JavaScript-> Editor -> Content Assist -> Auto-Activation

html文件提示Window -> Preferences -> Web -> HTML Files -> Editor -> Content Assist -> Auto-Activation

4.生成的变量名是有意义的名字

Window -> Preferences -> Java -> Installed JREs -> Edit:

选中设置好的JRE目录,编辑,然后全选 JRE system libraries 下的所有Jar包,点击右边的 Source Attachment;

External location 下,选中JDK安装目录下的  src.zip 文件,一路OK 下来。

5.保存同时格式化代码:windows-->Preferences-->Java --> Editor-->Save Actions, 勾选窗口上的“Perform the selected actions on save”选项

原创粉丝点击