harbourCodeExtension icon indicating copy to clipboard operation
harbourCodeExtension copied to clipboard

Code style management

Open ryzhovalexandr opened this issue 2 years ago • 3 comments

Hello! Thank you for your extension! In my team 4+ developers and legacy code base. I'd like to auto format code while editing (after save or select piece of code and press hot key) according our code style. After integrate it in our pipline. I think it could be very helpful not only for my team. Mayby it could be pretty easy to add it to your extension, or create new one? What do you think? I can try to contribute.

ryzhovalexandr avatar Feb 20 '23 00:02 ryzhovalexandr

there is already a formatter, have you tried the command "format document" and the options "format on save"? image It is in an embrional state.

APerricone avatar Feb 20 '23 08:02 APerricone

Yes, I have found it, thanks. In description of plug in there's nothing about it. What plans do you have about new features? I'd be very happy to see in plans

  • register of reserve words (capital or lower case letters)
  • local, params, private, public, static var naming. With vengarian notation and another prefixes
  • use '==' and ':=' instead of '='

ryzhovalexandr avatar Feb 21 '23 21:02 ryzhovalexandr

It was an experiment, I planned to ask to some users to test it then finish it, but I never did it. So it is not advertised. The use of Hungarian notation or other naming convention can be implemented as configurable extra warning, but is is not planned. Actually all the extension is semi abandoned, starting next week I will not use harbour at work so probably I will not modify the extension anymore

APerricone avatar Feb 22 '23 07:02 APerricone