Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code style management #91

Open
ryzhovalexandr opened this issue Feb 20, 2023 · 3 comments
Open

Code style management #91

ryzhovalexandr opened this issue Feb 20, 2023 · 3 comments

Comments

@ryzhovalexandr
Copy link

ryzhovalexandr commented Feb 20, 2023

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
Copy link
Owner

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
Copy link
Author

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 '='

@APerricone
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants