prettier / prettier-vscode

Visual Studio Code extension for Prettier
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
MIT License
5.04k stars 446 forks source link

Title: Feature Request: Improved Support for C Language in Prettier Extension #3384

Open md-durjoy opened 3 weeks ago

md-durjoy commented 3 weeks ago

Description: I would like to request improved support for the C language in the Prettier extension. Currently, I am experiencing challenges with using Prettier for formatting C code, and I believe enhancing its compatibility with C could significantly benefit developers working with this language.

Extension Compatibility: While Prettier is widely used for languages like JavaScript, TypeScript, and CSS, it lacks robust support for C, which has different syntax and formatting rules. Enhancing compatibility would make Prettier more versatile and appealing to a broader audience.

Configuration: Configuring Prettier for C language can be complex and requires precise settings to align with C's standards. Providing clearer documentation or presets specifically for C could simplify this process and improve the overall user experience.

Community Engagement: Encouraging community contributions and feedback on C language support can help identify common issues and develop solutions collaboratively. Establishing dedicated channels for discussing C language compatibility within the Prettier community could foster a more inclusive development process.

Alternative Solutions: While Prettier is a popular choice for code formatting, developers often resort to alternative tools like clang-format for formatting C code. Enhancing Prettier's support for C could offer a more integrated solution within existing workflows, reducing the need for switching between multiple tools.