字体设置
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格式等等
如果没有特殊需求,默认的格式已经可以满足需求
1161

被折叠的 条评论
为什么被折叠?



