|
|
|
|
Re: add newline to template? [message #1831439 is a reply to message #1831417] |
Wed, 19 August 2020 19:58 |
|
Sounds like you're looking for the Code Templates preference page, which affects code generation, and not the Content Assist / Templates preference page, which is more for setting up phrases you can expand into proper expressions using content assist (Cmd/Ctrl+Space).
_
Nitin Dahyabhai
Eclipse Web Tools Platform
[Updated on: Wed, 19 August 2020 19:59] Report message to a moderator
|
|
|
Re: add newline to template? [message #1831449 is a reply to message #1831393] |
Thu, 20 August 2020 04:05 |
Blood Eko Messages: 5 Registered: August 2020 |
Junior Member |
|
|
@Override
public void play(String x) {
// TODO Auto-generated method stub
}
@Override
public void play(String x) {
}
@Override
public void play(String x) {
}
The first code block is which comes up when auto-implementing methods with default settings under
Preferences -> Java -> Code Style -> Code Templates -> Code -> Method body
When replacing the comment with a newline in the template it becomes the second example.
As newlines seem to be stripped somehow. What I would like to archieve is the third example.
[Updated on: Fri, 21 August 2020 08:02] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03822 seconds