Bug 102726 - Using text size to make code more readable
Summary: Using text size to make code more readable
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 48354
Blocks:
  Show dependency tree
 
Reported: 2005-07-05 08:38 EDT by Antti Karanta CLA
Modified: 2007-06-22 10:02 EDT (History)
0 users

See Also:


Attachments
A sample of what the formatted code could look like (38.50 KB, application/msword)
2005-07-05 08:40 EDT, Antti Karanta CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Karanta CLA 2005-07-05 08:38:20 EDT
Statically typed languages, such as Java, force one to have a lot of noise in 
the code just to keep the compiler happy. When reading the code, variable type 
declarations, typecasts, method return types, visibilities etc. often make the 
reading of the code very difficult. This is something I love e.g. in Ruby - the 
code is very readable as there is very little noise.

So, I came up with an idea: IDE could be of help in reducing the noise. It would 
be possible to use font sizes to make the code appear so that it is easier to 
read. The kind of stuff I mentioned above would be in a smaller font (possibly 
even a different font? Scite editor uses this and having e.g. comments in 
different font enhances the readability incredibly) thus making the reading 
easier. 
  The solution should be wholly configurable, so the user could select which of 
the following (and possibly others?) are "diminished":

- method return types
- method visibilities
- method argument types
- types in variable declarations
- typecasts
etc. 
It should also be configurable what font size to use for the diminished things, 
possibly stating size relative to the editor font size (e.g. -4).

I tried it out quickly in Word and I find it very appealing, please see the 
attached word doc.

The advantage of this approach is that you can still see the "noisy" elements, 
but it is easier to ignore them. Also, sometimes you might want to e.g. see the 
visibilities of the methods with no "diminishing", then you could choose to do 
so.
Comment 1 Antti Karanta CLA 2005-07-05 08:40:11 EDT
Created attachment 24341 [details]
A sample of what the formatted code could look like

This sample is naturally missing the folding options present in Eclipse. Also,
I could not be bothered to color the code as Eclipse does.
Comment 2 Dani Megert CLA 2005-07-05 08:48:38 EDT
there's currently no way to implement this, see bug 48354.
Comment 3 Dani Megert CLA 2007-06-22 09:59:25 EDT
Get rid of deprecated state.