您的位置:首页 > 编程语言 > Java开发

Eclipse开发Java前配置

2017-03-30 15:24 99 查看

字体设置

Window->Preferences->General->Apperance->Colors and Fonts->Basic->Text Font->Edit(Consolas 常规 小四)
自己喜欢就好

工作空间默认编码设置

Window->Preferences->General->Workspace->Text file encoding(UTF-8)

Window->Preferences->General->Workspace->New text file line delimiter(Other Unix)

参考公司/团队规定

指定类型文件默认编码设置

Window->Preferences->General->Content Types->Text->Java Source File->Default encoding(UTF-8)

Window->Preferences->General->Content Types->Text->Java Properties File->Default encoding(UTF-8)
参考公司/团队规定



保存时自动格式化代码

Window->Preferences->Java->Editor->Save Actions->Perform the selected actions on save

其他选项按照自己需求自己选择

设置Java代码模版

Window->Preferences->Java->Code Style->New Java Files->Edit



其他参数可以自己选择

自定义编程风格

Window->Preferences->Java->Code Style->Formatter->New
可以选择tab格式,每行代码字符个数,if else格式等等
如果没有特殊需求,默认的格式已经可以满足需求
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipse java 配置项