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

[4] Add a way to check the coding style #87

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

radu-md
Copy link

@radu-md radu-md commented Jun 29, 2024

What does it fix?
WIP Issue #4

How has it been tested?

To verify if your .editorconfig file is taking effect, follow these steps:

  1. Open a C# file in Visual Studio.
  • Make sure the .editorconfig file is present in your solution directory.
  • Introduce a deliberate coding style violation (e.g., use tabs instead of spaces for indentation).
  • Save the file.
  • If your .editorconfig settings are correct, you should see a warning or error in the editor indicating the violation.
  1. Inspect Code Style Warnings:
  • Build your solution (Ctrl + Shift + B).
  • Look for warnings related to code style violations in the “Error List” window.
  • If any warnings appear, they indicate that your .editorconfig settings are being enforced.
  1. Manually Apply Code Style Fixes:
  • Right-click on the file with violations.
  • Choose “Format Document” or “Format Selection” from the context menu.
  • If the formatting changes align with your .editorconfig settings, it confirms that the file adheres to the specified style.

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

Successfully merging this pull request may close these issues.

1 participant