Menu

#219 A way to differentiate the mathematical <> (greater, less) from the breakets in generic Classes in the Code Formatter

open
nobody
None
5
2026-02-09
2026-02-09
p m
No

The Code Formatter works great, but I found no way to tell apart a mathematical operator like:
1 < 2
from the brackets for a generic class, such as:
TJSON.StringToObject<tjsonobject>('{"bla":"bla"}').</tjsonobject>

For mathematical comparisons, it’s nice and more readable to have spaces before and after the operator. However, for a generic class, it looks strange to format it like this:
TJSON.StringToObject < TJSONObject > ('{"bla":"bla"}')

Discussion

  • Thomas Mueller

    Thomas Mueller - 2026-02-09

    Actually the example you provided works fine with the latest version (1.3.26). Can you provide an example where it fails? Or if the given example fails for you, please share your formatter configuration settings (export them from the dialog and attach the generated .ini file).

     

    Last edit: Thomas Mueller 2026-02-09
  • Thomas Mueller

    Thomas Mueller - 2026-02-09

    btw: While investigating, I did find and fix a related edge case: dot-qualified type names inside generics (e.g., Foo<system.bar>) were not recognized as generics (bug #471, fixed in r5095).</system.bar>

     

Log in to post a comment.