APerricone / harbourCodeExtension

Antonino Perricone's extension for visual studio code about Harbour and xHarbour programming languages
32 stars 20 forks source link

Code style management #91

Open ryzhovalexandr opened 1 year ago

ryzhovalexandr commented 1 year ago

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.

APerricone commented 1 year ago

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.

ryzhovalexandr commented 1 year ago

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

APerricone commented 1 year ago

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