Eclipse 常用配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Next_Second/article/details/80955871

eclipse 常用配置

1. 自动补全

Windows->Preferences->Java->Editor->Content Assist

Auto activation triggers for Java: 后边的内容,将.改为.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

2. 保存自动格式化

Windows->Preferences->Java->Editor->Save Actions

选中Perform the selected actions on saveFormat source code

3. UTF-8编码及Unix文件格式

Windows->Preferences->General->Workspace

将底部的Text file encoding,不选择Default,而选择Other->UTF-8

Next text file line delimiter,不选择Default,而选择Other->Unix

4. 空格替换Tab并显示空字符

Windows->Preferences->General->Editors->Text Editors

选中Insert spaces for tabsshow whitespace characters

Windows->Preferences->Java->Code Style->Formatter

编辑默认的profile,选择Indentation选项卡,将Tab policy的值改为Spaces only

5. 文件浏览插件 Open Explorer

从github下载插件 插件下载地址 OpenExplorer_1.5.0.v201108051513.jar

然后将.jar文件拷贝到eclipse安装目录下的plugins目录下,重启Eclipse即可生效。

更多文章

猜你喜欢

转载自blog.csdn.net/Next_Second/article/details/80955871
今日推荐