Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Text formatting problem: Missing context menu and max line length parm
Text formatting problem: Missing context menu and max line length parm [message #510413] Wed, 27 January 2010 08:37 Go to next message
Eclipse UserFriend
I would like to (re-)format the soruce code of my currently opened file (in focus).

This could be done back in Eclipse v3.3 by right clicking onto the text editor pane and selecting the context menu entry "Format".

I miss this context menu entry in v3.5
Do I have to enable this somewhere ?
I found this only in menu "Source".

Secondly I miss a parameter to specify the max allowed length of a line. Currently all lines are wrapped after approx
column 80.

How can I increase this value to lets say 120?

Peter
Re: Text formatting problem: Missing context menu and max line length parm [message #510654 is a reply to message #510413] Thu, 28 January 2010 03:46 Go to previous message
Eclipse UserFriend
Ben wrote:
> I would like to (re-)format the soruce code of my currently opened
> file (in focus).
>
> This could be done back in Eclipse v3.3 by right clicking onto the
> text editor pane and selecting the context menu entry "Format".
Not sure which editor you refer to but for the Java editor it is context
menu > Source > Format since R2.1.
>
> I miss this context menu entry in v3.5
> Do I have to enable this somewhere ?
> I found this only in menu "Source".
>
> Secondly I miss a parameter to specify the max allowed length of a
> line. Currently all lines are wrapped after approx
> column 80.
For Java this is on Java > Code Style > Formatter page > Edit... > Line
Wrapping tab

Dani
>
> How can I increase this value to lets say 120?
>
> Peter
>
Previous Topic:can't run a jar with classpath
Next Topic:create a java project
Goto Forum:
  


Current Time: Thu Mar 27 01:08:08 EDT 2025

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

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

Back to the top