This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 402452 - [enhancement] Add new line after comma in multi var statement
Summary: [enhancement] Add new line after comma in multi var statement
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VJET (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jack Liu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-05 11:34 EST by Justin Early CLA
Modified: 2017-04-11 15:12 EDT (History)
0 users

See Also:


Attachments
Uncheck (31.22 KB, image/png)
2013-03-10 03:18 EDT, Jack Liu CLA
no flags Details
Check -- Insert new line before &multiple local declarations (28.90 KB, image/png)
2013-03-10 03:19 EDT, Jack Liu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Early CLA 2013-03-05 11:34:31 EST
When I have this:
var me = this,bla1 = 'foo1', bla2 = 'foo2';  
And format this I get (extra space after comma)
var me = this, bla1 = 'foo1', bla2 = 'foo2'; 

But how can I get after every comma new line and then a tabulator that it looks like this:
var me = this,
    bla1 = 'foo1',
    bla2 = 'foo2';
Comment 1 Jack Liu CLA 2013-03-06 09:53:26 EST
I will add a new option (check box) "Insert new line after every assignments" in Preference - VJET - formatter -> New Lines(Tab) ->  Assignment (Group).

Will add a new group "Assignment" in the tab "New Lines".
Comment 2 Jack Liu CLA 2013-03-10 03:15:21 EDT
Fixed.
git.exe push --progress  "origin" b_402452:b_402452

git.eclipse.org/gitroot/vjet/org.eclipse.vjet.eclipse.git
* [new branch]      b_402452 -> b_402452
Comment 3 Jack Liu CLA 2013-03-10 03:18:56 EDT
Created attachment 228171 [details]
Uncheck

Uncheck -- Insert new line before &multiple local declarations
Comment 4 Jack Liu CLA 2013-03-10 03:19:38 EDT
Created attachment 228172 [details]
Check -- Insert new line before &multiple local declarations

Check -- Insert new line before &multiple local declarations
Comment 5 Justin Early CLA 2013-03-10 13:31:32 EDT
Hi Jack,

You want to change preference text in the Insert new line box

from

Insert new line before multiple local declarations

 to

after comma for multiple var statement (var x=20,z=30)

Thanks,

Justin
Comment 6 Jack Liu CLA 2013-03-11 08:45:17 EDT
Updated.
Comment 7 Justin Early CLA 2013-03-12 21:00:45 EDT
merged into build should be in nightly