Netbeans Java code formatting issues -
I want to format some piece of java code in a more compact way than the default Netbeans formatting behavior; Netbeans are not able to set formatting options correctly for code snippets, so I will try to ask here:
1 / Netbeans formatting is possible to leave a line What is the method? For example: Default behavior formats this snippet as follows: 2 / Is it possible to initialize double braces in this form? Netbeans always use this code Thanks for the tips. Take a look at these sites for more information. - - To adjust the formatting rules for Java files:
Public Zero Print Message (String Message) {System.out.println (Message); }
Public Zero print message (string message) {System.out.println ( message); }
Private List & lt; String & gt; List = New Arrestist & lt; String & gt; () {{// some code here}};
in the private list & lt; String & gt; List = New Arrestist & lt; String & gt; () {{// some code here}};
Comments
Post a Comment