Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to add newline to template?(question.)
How to add newline to template? [message #1831500] Fri, 21 August 2020 07:01
Blood Eko is currently offline Blood EkoFriend
Messages: 5
Registered: August 2020
Junior Member
    public void play(String x) {
        // TODO Auto-generated method stub

    public void play(String x) {
    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.
Any ideas how this could be done?

Thanks in advance.

[Updated on: Fri, 21 August 2020 08:05]

Report message to a moderator

Previous Topic:Can't run java project with module warning
Next Topic:Eclipse goes out of focus when it suggests me things.
Goto Forum:

Current Time: Sun Jun 13 22:09:22 GMT 2021

Powered by FUDForum. Page generated in 0.01707 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top