Loading ...
Sorry, an error occurred while loading the content.

Alternate java indent scheme update

Expand Messages
  • Bryan Schofield
    Modified: ;a leading : or math operator indicates a continued line (except * because of javadoc) indent #l5 s ^ s*[ . +-/%:][^ */] t Added: ; a trailing
    Message 1 of 1 , Feb 28, 2007
    View Source
    • 0 Attachment
      Modified:
      ;a leading : or math operator indicates a continued line
      (except * because of javadoc)
      indent #l5 s "^\\s*[\\.\\+-/%:][^\\*/]" t

      Added:
      ; a trailing = starts a continuation
      indent #l5 c "=\\s*$" t


      Example:
      SomeRidiculouslyLongClassName myRediculousThing =
      ThingFactory.createSomething();
      assert myRediculousThing.isReallySomething()
      : "omg these classes and methods have long names";


      Cheers
      -- bryan
    Your message has been successfully submitted and would be delivered to recipients shortly.