Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java Formatter settings for casts
Java Formatter settings for casts [message #765024] Tue, 13 December 2011 09:34 Go to next message
hegewald is currently offline hegewaldFriend
Messages: 4
Registered: December 2011
Junior Member
Hi there,
is there a way to tell the Java formatter not to insert a space after the closing bracket? For example I want to have
bar = (int)foo;
instead of
bar = (int) foo;

Many TIA,
-- Jan
Re: Java Formatter settings for casts [message #765157 is a reply to message #765024] Tue, 13 December 2011 14:22 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 13.12.2011 10:34, hegewald wrote:
> Hi there,
> is there a way to tell the Java formatter not to insert a space after
> the closing bracket?
Yes, you can set this on the 'White Space' tab (Expressions > Type
casts) of the Java > Code Style > Formatter preferences.

Dani
> For example I want to have
> bar = (int)foo;
> instead of
> bar = (int) foo;
>
> Many TIA,
> -- Jan
Re: Java Formatter settings for casts [message #765564 is a reply to message #765157] Wed, 14 December 2011 10:03 Go to previous message
hegewald is currently offline hegewaldFriend
Messages: 4
Registered: December 2011
Junior Member
Dani Megert wrote on Tue, 13 December 2011 09:22
'White Space' tab (Expressions > Type
casts) of the Java > Code Style > Formatter preferences.


Many thanks, I somehow overlooked it.

-- Jan
Previous Topic:I get this and stopped when went install some js/jquery plugins
Next Topic:How can I show a view in defined position in plugin.xml programmably?
Goto Forum:
  


Current Time: Tue Apr 23 03:01:18 GMT 2024

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

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

Back to the top