I’d like to have one coding style across multiple languages. Can anyone provide a link to code that is styled nicely, that I can use for each language?
It is easiest to just look at an example rather than read for the multitude of cases that arise.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s not a chance in hell. There’s no such thing as code that’s styled nicely for C and C++, let alone across the other languages too. You haven’t exactly picked C# and Java here in terms of language similarities.
Edit: Do not, ever, use the Google Style Guide. It is horrendous and terrible. It was only ever devised to make C++ compatible with C, which basically means not using virtually all of the useful language features and writing some terrible code. And even then, you’d never make it compatible with JavaScript and PHP.