tanqidong1992 / protobuf-dt

Automatically exported from code.google.com/p/protobuf-dt
0 stars 0 forks source link

Feature request: code formatter customization #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. It is not possible to customize the code style
2. It is not possible to disable the code formatter

What is the expected output? What do you see instead?

Would be nice to have a possibility to disable the formatter and do some basic 
customization, e.g. whether to put '{' on the same line as message definition 
or insert a new line. 

What version of the product are you using? On what operating system?

Protocol Buffer Editor 1.3.2.201207081052

Please provide any additional information below.

Example:

=== ACTUAL BEHAVIOR:

AddressBook.proto before formatting:

package test;import "common/Person.proto";
message AddressBook {repeated Person person = 1;}

AddressBook.proto after CTRL+SHIFT+F:

package test;

import "common/Person.proto";
message AddressBook {
    repeated Person person = 1;
}

=== EXPECTED BEHAVIOR after formatted customized respectively:

AddressBook.proto before formatting:

package test;import "common/Person.proto";
message AddressBook {repeated Person person = 1;}

AddressBook.proto after CTRL+SHIFT+F:

package test;

import "common/Person.proto";

message AddressBook
{
    repeated Person person = 1;
}

Original issue reported on code.google.com by dmytro.p...@gmail.com on 9 Oct 2012 at 10:28

GoogleCodeExporter commented 9 years ago

Original comment by alr...@google.com on 10 Oct 2012 at 9:50

GoogleCodeExporter commented 9 years ago

Original comment by alr...@google.com on 24 Oct 2012 at 5:35