Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Custom formatting using Eclipse AST(Hello Everyone, Could you please let me know how we can add a blank line before and after while statement, Switch statement and if statement)
Custom formatting using Eclipse AST [message #1778126] Mon, 11 December 2017 06:05 Go to next message
Mohd Zaved is currently offline Mohd ZavedFriend
Messages: 2
Registered: December 2017
Junior Member
Hello Everyone,
Could you please let me know how we can add a blank line before and after while statement, Switch statement and if statement.

Example:

How to insert the Blank line in following if statement.

//Blank line has to be inserted here
if( x < 20 ) {
System.out.print("This is first if statement");
}
//Blank line has to be inserted here
if( x > 20 ) {
System.out.print("This is second statement ");
}
//Blank line has to be inserted here

[Updated on: Tue, 12 December 2017 08:56]

Report message to a moderator

Re: Custom formatting using Eclipse AST [message #1778188 is a reply to message #1778126] Mon, 11 December 2017 14:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29539
Registered: July 2009
Senior Member
I'm pretty sure you can't. There are no formatting preferences for blank lines in statements.
Re: Custom formatting using Eclipse AST [message #1778815 is a reply to message #1778188] Thu, 21 December 2017 19:08 Go to previous message
Mohd Zaved is currently offline Mohd ZavedFriend
Messages: 2
Registered: December 2017
Junior Member
Thanks Ed Merks
Previous Topic:Oxygen Update: Stop Object Teams Patch for JDT/Core showing up in Available Updates/Update Details
Next Topic:Screen clutter
Goto Forum:
  


Current Time: Thu Sep 20 10:40:56 GMT 2018

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

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

Back to the top