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

Uniform code format for Hyst #34

Open
stanleybak opened this issue May 31, 2016 · 1 comment
Open

Uniform code format for Hyst #34

stanleybak opened this issue May 31, 2016 · 1 comment

Comments

@stanleybak
Copy link
Contributor

stanleybak commented May 31, 2016

I think we should setup a uniform code format for Hyst. There is a super-easy way to automate this. We provide an .xml file describing the format which Eclipse's code formatter can parse (this can be version controlled in the repository). This can be exported from Eclipse's code formatter (I already have one I use myself to make code generation closer to what I expect).

  1. You import this file within Eclipse.
  2. You set Eclipse to automatically format your code every time you save.

I've done this type of setup recently for another C++ project I'm working on, and I've found it actually saves me time when coding, since I just save with ctrl+s instead of playing with formatting when I'm editing things.

What do you think Talyor?

@ttj
Copy link
Contributor

ttj commented May 31, 2016

That sounds like a great idea! Please also make sure to add your post with the instructions to the developer setup instructions.

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