AcademyRulesDevelopment

C++ programming guidelines

C++ development teams who want AI-generated code to follow one set of naming and structure rules.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/cpp-programming-guidelines-cursorrules-prompt-file.mdc -o .cursor/rules/cpp-programming-guidelines.mdc
cpp-programming-guidelines.mdc

Loading the file...

What it does

A Cursor rules file with coding conventions for C++ projects. It covers declaring types everywhere, naming rules for classes, variables and constants, Doxygen comments for public code, short single-purpose functions, early returns and use of standard library algorithms.

Use cases

  1. 01Apply shared naming rules to new C++ code
  2. 02Keep functions short and single-purpose
  3. 03Document public classes with Doxygen comments

Questions about
C++ programming guidelines.

What is C++ programming guidelines used for?

C++ development teams who want AI-generated code to follow one set of naming and structure rules. A Cursor rules file with coding conventions for C++ projects. It covers declaring types everywhere, naming rules for classes, variables and constants, Doxygen comments for public code, short single-purpose functions, early returns and use of standard library algorithms.

How do I install C++ programming guidelines?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/cpp-programming-guidelines-cursorrules-prompt-file.mdc -o .cursor/rules/cpp-programming-guidelines.mdc

Is C++ programming guidelines open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is C++ programming guidelines safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.