eclipse-jdt / eclipse-jdt/eclipse.jdt.ui
Update the default java Code Templates for auto fill to remove the // TODO comments make it more modern
- Dominant language
- Java
- Stars
- 59
- Forks
- 127
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 35
Description
This autofill stuff is pretty dated:
```
// TODO Auto-generated catch block
e.printStackTrace();
```
Now virtually everyone will want to go and replace them with a `throw new RuntimeException();` or just make it an empty area with a cursor ready to rock
Not end of the world just not great
recommendation:
```
/**
* @return the ${bare_field_name}
*//**
* @param ${param} the ${bare_field_name} to set
*//**
* ${tags}
*//**
*
*//**
* ${tags}
*//**
*
*//**
* ${tags}
*//**
* ${tags}
*//**
* ${tags}
* ${see_to_target}
*/${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
throw new RuntimeException();${body_statement}${body_statement}
return ${field};${field} = ${param};
```
Contributor guide
Research direction
Start by locating the default Java code-template configuration and compare it with the XML recommendation in the issue. Done means the catch-block template no longer emits the TODO comment and stack-trace call, and the default templates reflect the requested modern behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100