Advanced Code Formatting
375
Views
3
Comments
New
Service Studio

IDEs typically provide an option to customize code formatting.

Service Studio lacks that functionality, which forces developers to format the code
manually.

It would be great to customize the way that the code is indented. For example:

  • Define the x and y coordinates of the Start Node
  • Define the x and y coordinates of the Exception Handler (if more than one is present, align it to the right or to the left)
  • Define the horizontal and vertical distance between nodes (in grid points)

More advanced options could include, for example, if the first For Each node should align to the right or top right.

A shortcut (e.g. CTRL + SHIFT + F) to format the code would also be great!

Configuration example:


Before:


After:

This functionality is really needed. I have wasted most of the time doing this in many projects. There should be default format setting and user should be able to make a change in it. I am adding few points to it.

  1. Default Format should be there.
  2. User can manually set the format according to it.
  3. Upload Code format option is also needed because it will be helpful for a company to define a common format and circulate it.
  4. Service center should also have the place to upload the code format for application level, module level, and environment level.
  5. AI mentor should be able to analyze the unformatted files as per latest file format uploaded for the system.

Adding advantage of it

  • Team will remain in sync for formatting.
  • Code will remain neat and clean.
  • A global standard and practice can be maintained.
  • Knowledge transfer can be easy to new resource.

This would be great to have.