Skip to main content



      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 03:01
Eclipse UserFriend
    @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 04:05] by 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 Jul 13 10:52:35 EDT 2025

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

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

Back to the top