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
    @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.
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: Sat Oct 24 20:05:50 GMT 2020

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

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

Back to the top