eclipse-config

1.Input “text editor” to search the “Text Editors” configuration, check “Insert spaces for tabs”, “Show line numbers”, “Show whitespace characters”.

2.Input “encoding” to search the configurations, set the encoding to UTF-8 for “Workspace”, “CSS Files”, “HTML Files”, “JSP Files” and “XML Files”.

3.Input “formatter” to search the configurations, select “Formatter” under Java-->Code Style. Click “New...” to new a profile. Input profile name “Training Project”. The new profile will be used to format code after you customize the code style settings.
Select “Indentation” tab and select “Spaces only” for “Tab policy”.
Select “Line wrapping” tab and set “Maximum line width” to 100.
Input “save ac” to search the configurations, select “Save Actions” under Java-->Editor. Check “Perform the selected actions on save”, “Format source code”, “Format edited lines”, “Organize imports” and “Additional actions”.
Click “Configure...”, select “Code Organizing” tab and check “Remove trailing whitespace”. Select “Code Style” tab and uncheck “Use modifier ‘final’ where possible”.

猜你喜欢

转载自yuexiahandao.iteye.com/blog/1973496
今日推荐