This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 129817 - Allow formating text in a columnar way
Summary: Allow formating text in a columnar way
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 129598 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-11 17:51 UTC by mbarnes
Modified: 2013-09-02 14:24 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mbarnes 2008-03-11 17:51:18 UTC
I would find it very helpful to have an Editor Command that would format the selected text in a columnar or "table"
format, by expanding/contracting the whitespace between non-white-space.

Example:
  filePath = "/";
  open = false;
  empty = true;

Would change to:
  filePath = "/";
  open     = false;
  empty    = true;



Also, the ability to automatically do this for multi-line parameter lists would be really great.

For example:
  public void test( String testName,
                   int testNumber,
                   Map<Integer,TestResults> results )

Would change to:
  public void test( String                   testName,
                    int                      testNumber,
                    Map<Integer,TestResults> results )
                    


I know quite a few people who arrange their code in columns, ESPECIALLY in multi-line parameter lists, etc.
It really makes code a lot easier to read and to maintain.
Comment 1 Vitezslav Stejskal 2008-03-25 11:39:55 UTC
*** Issue 130702 has been marked as a duplicate of this issue. ***
Comment 2 Vitezslav Stejskal 2008-03-25 11:40:53 UTC
*** Issue 129598 has been marked as a duplicate of this issue. ***